I'm trying to migrate some java encryption code into golang and came across this
Cipher cipher = Cipher.getInstance(RSA_ECB_OAEPWithSHA256AndMGF1Padding);
cipher.init(Cipher.WRAP_MODE, cert);
return cipher.wrap(key);
I'm trying to find any implementation of this in go. Any help would be appreciated. Thanks.
Though the question is a bit unclear I think you want a way to encode data in Go. You might find it helpful to google about the following standard Go packages: crypto/hmac
crypto/sha256
encoding/base64
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.