public class EncryptionServiceImpl extends java.lang.Object implements EncryptionService
Constructor and Description |
---|
EncryptionServiceImpl(PbeConfig config) |
EncryptionServiceImpl(java.lang.String passphrase,
java.lang.String salt,
int keylength,
int iterations,
java.lang.String cipherAlgorithm,
java.lang.String keySpecAlgorithm) |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] ciphertextPlusIv) |
byte[] |
decryptFromHex(java.lang.String ciphertextAsHex) |
byte[] |
encrypt(byte[] plaintext) |
byte[] |
encrypt(java.lang.String plaintext) |
public EncryptionServiceImpl(java.lang.String passphrase, java.lang.String salt, int keylength, int iterations, java.lang.String cipherAlgorithm, java.lang.String keySpecAlgorithm)
public EncryptionServiceImpl(PbeConfig config)
public byte[] decryptFromHex(java.lang.String ciphertextAsHex)
decryptFromHex
in interface EncryptionService
public byte[] decrypt(byte[] ciphertextPlusIv)
decrypt
in interface EncryptionService
public byte[] encrypt(java.lang.String plaintext)
encrypt
in interface EncryptionService
public byte[] encrypt(byte[] plaintext)
encrypt
in interface EncryptionService