public class Encryption extends Object
Encryption class.
Constructor and Description |
---|
Encryption() |
Modifier and Type | Method and Description |
---|---|
static String |
decrypt(String cipherText)
decrypt.
|
static String |
decrypt(String cipherText,
String secretKey)
decrypt.
|
static String |
encrypt(String plainText)
encrypt.
|
static String |
encrypt(String plainText,
String secretKey)
encrypt.
|
static byte[] |
padNullBytes(String text)
padNullBytes.
|
static String |
retrieveKey()
retrieveKey.
|
public static String encrypt(String plainText, String secretKey)
encrypt.
plainText
- a String
objectsecretKey
- a String
objectString
objectpublic static byte[] padNullBytes(String text)
padNullBytes.
text
- a String
objectbyte
objectspublic static String decrypt(String cipherText, String secretKey)
decrypt.
cipherText
- a String
objectsecretKey
- a String
objectString
objectCopyright © 2016–2024. All rights reserved.