Package rife.tools
Class StringEncryptor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
static final StringEncryptor
Fields inherited from class rife.datastructures.EnumClass
identifier_
-
Constructor Summary
ConstructorDescriptionStringEncryptor
(String identifier, String prefixSeparator) StringEncryptor
(String identifier, String prefixSeparator, boolean requiresAdaptiveVerification) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
adaptiveEncrypt
(String clearValue, String encryptedValue) static String
autoEncrypt
(String prefixedValue) static String
deobfuscate
(String value) static StringEncryptor
getEncryptor
(String identifier) static String
static void
static boolean
static String
abstract String
performEncryption
(String value, String encryptedValue) prefix()
boolean
Methods inherited from class rife.datastructures.EnumClass
equals, getIdentifier, getIdentifiers, getMember, getMembers, hashCode, registerType, toString
-
Field Details
-
DRUPAL
-
SHA
-
SHAHEX
-
SHAHLO
-
WHIRLPOOL
-
WHIRLPOOLHEX
-
WHIRLPOOLHLO
-
MD5
-
MD5HEX
-
MD5HLO
-
OBF
-
-
Constructor Details
-
StringEncryptor
-
StringEncryptor
-
-
Method Details
-
getEncryptor
-
requiresAdaptiveVerification
public boolean requiresAdaptiveVerification() -
prefix
-
encrypt
- Throws:
NoSuchAlgorithmException
-
encrypt
- Throws:
NoSuchAlgorithmException
-
performEncryption
public abstract String performEncryption(String value, String encryptedValue) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
autoEncrypt
- Throws:
NoSuchAlgorithmException
-
matches
public static boolean matches(String checkedValue, String encryptedValue) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
adaptiveEncrypt
public static String adaptiveEncrypt(String clearValue, String encryptedValue) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
obfuscate
-
deobfuscate
-
getHelp
-
main
-