Quantcast
Channel: Chilkat Forum - latest questions
Viewing all articles
Browse latest Browse all 1061

RSA with SAH 256

$
0
0

Hi all,

i need to "translate" these lines writed in java. I dont' know what functions or assembly to use :

KeyStore keystore; // key repository for keys containing signature certificate String alias; // alias for the certificate in the key repository String password; // password for the certificate's private key String plaintext; // text being signed

Signature signature = Signature.getInstance("SHA256withRSA"); signature.initSign((PrivateKey) keystore.getKey(alias, password.toCharArray())); signature.update(plaintext.getBytes("UTF-8")); byte[] rsa_text= signature.sign();

If someone can help me. I discover certificates and cryto. it is so new for me.

Thanks for your help.

Eric


Viewing all articles
Browse latest Browse all 1061

Trending Articles