public class StringEncrypter extends Object
Constructor and Description |
---|
StringEncrypter(SecretKey key,
String algorithm)
Constructor used to create this object.
|
StringEncrypter(String passPhrase)
Constructor used to create this object.
|
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String str)
Takes a encrypted String as an argument, decrypts and returns the decrypted String.
|
String |
encrypt(String str)
Takes a single String as an argument and returns an Encrypted version of that String.
|
public StringEncrypter(SecretKey key, String algorithm)
key
- Secret Key used to initialize both the encrypter and decrypter instances.algorithm
- Which algorithm to use for creating the encrypter and decrypter instances.public StringEncrypter(String passPhrase)
passPhrase
- Pass Phrase used to initialize both the encrypter and decrypter instances.Copyright © 2018. All rights reserved.