Go Error: Cannot Use String Constant as Byte Slice in 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/pNuQ 著作权归作者所有。请勿转载和采集!