public class CodecHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
ensureDecoded(String code)
Ensure that a given code is decoded.
|
static String |
ensureEncoded(String code)
Ensure that a given code is encoded.
|
static String |
generateKey(int keySize)
Generate a new key to be used for creating ciphers.
|
static Decoder |
getDecoder()
Get the decoder.
|
static Encoder |
getEncoder()
Get the encoder.
|
static boolean |
isEncoded(String code)
Answer whether the given code is encoded or not.
|
static void |
setKey(String key)
Set the key to be used for creating ciphers.
|
public static String ensureDecoded(String code)
code - The given stringpublic static String ensureEncoded(String code)
code - The given stringpublic static void setKey(String key)
key - The keypublic static Decoder getDecoder()
public static Encoder getEncoder()
public static String generateKey(int keySize)
keySize - The size of the keypublic static boolean isEncoded(String code)
code - The code to be testedCopyright © 2019. All rights reserved.