Modifier and Type | Method and Description |
---|---|
static byte[] |
decrypt(byte[] data,
Key key)
Decrypts the data into the cipher with the given key
|
static KeyPair |
generate(int bits)
Generates a KeyPair with the specified amount of bits using an RSA cipher
|
public static KeyPair generate(int bits) throws NoSuchAlgorithmException
bits
- the bits in the final digest for the KeyPairNoSuchAlgorithmException
- if RSA cipher is removed in the futureCopyright © 2016. All rights reserved.