To convert the string constant "SAInfo" to a byte slice, you can use the []byte type conversion. Here's an example:

ntToken := []byte("SAInfo")

// Pass ntToken to SymmetricDecryption
SymmetricDecryption(ntToken)

This code converts the string constant "SAInfo" to a byte slice and assigns it to the ntToken variable. Then, you can pass ntToken to the SymmetricDecryption function.

cannot use ntToken untyped string constant SAInfo as byte value in argument to SymmetricDecryption

原文地址: https://www.cveoy.top/t/topic/h4zG 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录