Generating RSA keys in PKCS#1 format in Java

前端 未结 6 665
有刺的猬
有刺的猬 2020-11-28 08:33

When I generate an RSA key pair using the Java API, the public key is encoded in the X.509 format and the private key is encoded in the PKCS#8 format. I\'m looking to encod

6条回答
  •  天命终不由人
    2020-11-28 08:47

    The BouncyCastle framework has a PKCS1 Encoder to solve this: http://www.bouncycastle.org/docs/docs1.6/index.html

提交回复
热议问题