jwt icon indicating copy to clipboard operation
jwt copied to clipboard

`x509.DecryptPEMBlock` has been deprecated since Go 1.16

Open oxisto opened this issue 2 years ago • 3 comments

We should remove/replace it, to be compatible with future Go versions.

oxisto avatar Jul 31 '21 12:07 oxisto

It looks like there is no alternative in the Go standard library, so we are somewhat stuck here. Not sure how many people actually use ParseRSAPrivateKeyFromPEMWithPassword, it is in the utils file and primarily used for a test. We should at least deprecate it and remove it in a future version, i.e. v4 or v5.

oxisto avatar Jul 31 '21 15:07 oxisto

Any alternative library?

HimanshuSharma-Angel avatar Jun 22 '23 18:06 HimanshuSharma-Angel

Any alternative library?

I am afraid we don’t want the hassle of including anything else but the standard library. Especially for something which is not really part of the “public” API.

oxisto avatar Jun 23 '23 06:06 oxisto