|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.spidernetlabs.security.crypto.RSA
public class RSA
Classe che permette di criptare / decriptare mediante l'RSA.
Constructor Summary | |
---|---|
RSA()
Costruttore della classe: Calcola modulo, chiave pubblica e privata. |
|
RSA(java.math.BigInteger key)
Costruttore della classe: Calcola modulo e chiave privata. |
Method Summary | |
---|---|
java.math.BigInteger |
decrypt(java.math.BigInteger crypto)
Decripta il numero passato. |
java.math.BigInteger |
encrypt(java.math.BigInteger value)
Cripta il numero passato. |
void |
prepare()
Deprecated. |
java.lang.String |
printKey()
Stampa chiavi (pubblica e privata) e modulo. |
void |
saveKey()
Salva le chiavi e il modulo su file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSA()
public RSA(java.math.BigInteger key)
key
- La chiave pubblica.Method Detail |
---|
public void prepare()
public java.math.BigInteger encrypt(java.math.BigInteger value)
value
- Il numero da criptare.
public java.math.BigInteger decrypt(java.math.BigInteger crypto)
crypto
- Il numero criptato.
public java.lang.String printKey()
public void saveKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |