Package rife.tools
Class StringEncryptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorstatic final StringEncryptorFields inherited from class rife.datastructures.EnumClass
identifier_ -
Constructor Summary
ConstructorsConstructorDescriptionStringEncryptor(String identifier, String prefixSeparator) StringEncryptor(String identifier, String prefixSeparator, boolean requiresAdaptiveVerification) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringadaptiveEncrypt(String clearValue, String encryptedValue) static StringautoEncrypt(String prefixedValue) static Stringdeobfuscate(String value) static StringEncryptorgetEncryptor(String identifier) static Stringstatic voidstatic booleanstatic Stringabstract StringperformEncryption(String value, String encryptedValue) prefix()booleanMethods 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
-