public class DualCipher extends Object
Constructor and Description |
---|
DualCipher()
Creates a new
DualCipher with a randomly generated baseKey and matching random key. |
DualCipher(String key,
String baseKey)
Creates a
DualCipher based on existing keys, exposing Ciphers to encode/decode. |
Modifier and Type | Method and Description |
---|---|
protected Cipher |
createCipher(byte[] keyBytes,
boolean forEncryption) |
String |
getBaseKey() |
Cipher |
getDecryptCipher() |
Cipher |
getEncryptCipher() |
String |
getKey() |
public DualCipher(String key, String baseKey)
DualCipher
based on existing keys, exposing Ciphers to encode/decode.public DualCipher()
DualCipher
with a randomly generated baseKey and matching random key.Copyright © 2014–2015 Alfresco. All rights reserved.