Java RSASSA-PKCS1 howto

Can anyone tell me how to generate a signature for RSASSA-PKCS1-v1.5

in Java?

Actually, I want to know how I am with the class java.security.Signature

.

Do I need to use any third party libraries?

+2


a source to share


1 answer


Sun JCE supports PKCS # 1 signing. That's all you need to do,



Signature signer = Signature.getInstance("SHA1withRSA");
signer.initSign(privateKey);
signer.update(message);
byte[] signature = signer.sign();

      

+7


a source







All Articles