cannot use ntToken untyped string constant SAInfo as byte value in argument to SymmetricDecryption
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.
原文地址: https://www.cveoy.top/t/topic/h4zG 著作权归作者所有。请勿转载和采集!