samedi 2 mai 2015

Creating a random signature

I'm trying to calculate the signature of a document using the method initSign(PrivateKey privateKey, SecureRandom random). Before calling the method, I istantiated an object: SecureRandom random=new SecureRandom();
but when I call the method multiple times with the same key, it gives me always the same signature instead of randomizing it, even if the random number changes time by time. Why?




Aucun commentaire:

Enregistrer un commentaire