Key from String in Java RSA

后端 未结 3 1414
Happy的楠姐
Happy的楠姐 2020-12-28 11:03

I am using in my app RSA cryptography. To store generated public key I convert it to String and then save it in database.

    Key publicKey=null;
    Key pri         


        
3条回答
  •  旧时难觅i
    2020-12-28 11:30

    I can only assume the line:

    PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(clear);
    

    with "clear" was meant to be "keyBytes"

提交回复
热议问题