public final class EncryptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
base64decode(String text)
Returns text decoded with base64.
|
static String |
base64encode(String text)
Returns text encoded with base64.
|
static String |
decrypt(String text)
Returns text decoded using base64 and decrypted through xor.
|
static String |
decrypt(String text,
String key)
Returns text decoded using base64 and decrypted through xor.
|
static String |
encrypt(String text)
Returns text encrypted through xor and encoded using base64.
|
static String |
encrypt(String text,
String key)
Returns text encrypted through xor and encoded using base64.
|
static String |
xorText(String text)
Returns text encrypted using xor.
|
static String |
xorText(String text,
String key)
Returns text encrypted using xor.
|
@Nullable public static String encrypt(@Nullable String text)
text - text to encrypt@Nullable public static String encrypt(@Nullable String text, @NotNull String key)
text - text to encryptkey - xor key@Nullable public static String decrypt(@Nullable String text)
text - text to decryptpublic static String decrypt(@Nullable String text, @NotNull String key)
text - text to decryptkey - xor key@Nullable public static String xorText(@Nullable String text)
text - to encrypt@Nullable public static String xorText(@Nullable String text, @NotNull String key)
text - to encryptkey - xor key@Nullable public static String base64encode(@Nullable String text)
text - text to encodeCopyright © 2020. All rights reserved.