x509.DecryptPEMBlock Deprecated

Viewed 1451

in go 1.16.3 this func "x509.DecryptPEMBlock" is Deprecated

comments from go source

Deprecated: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext.

which func or what to use instead of "x509.DecryptPEMBlock" ?

0 Answers
Related