com.uwyn.rife.tools
Class StringEncryptor

java.lang.Object
  extended by com.uwyn.rife.datastructures.EnumClass<String>
      extended by com.uwyn.rife.tools.StringEncryptor

public class StringEncryptor
extends EnumClass<String>


Field Summary
static String IDENTIFIER_MD5
           
static String IDENTIFIER_MD5HEX
           
static String IDENTIFIER_OBF
           
static String IDENTIFIER_SHA
           
static String IDENTIFIER_SHAHEX
           
static String IDENTIFIER_WHIRLPOOL
           
static String IDENTIFIER_WHIRLPOOLHEX
           
static StringEncryptor MD5
           
static StringEncryptor MD5HEX
           
static StringEncryptor OBF
           
static StringEncryptor SHA
           
static StringEncryptor SHAHEX
           
static StringEncryptor WHIRLPOOL
           
static StringEncryptor WHIRLPOOLHEX
           
 
Fields inherited from class com.uwyn.rife.datastructures.EnumClass
mIdentifier
 
Method Summary
static String adaptiveEncrypt(String clearValue, String encryptedValue)
           
static String autoEncrypt(String value)
           
static String deobfuscate(String value)
           
 String encrypt(String value)
           
static StringEncryptor getEncryptor(String identifier)
           
static void main(String[] arguments)
           
static boolean matches(String checkedValue, String encryptedValue)
           
static String obfuscate(String value)
           
 
Methods inherited from class com.uwyn.rife.datastructures.EnumClass
equals, getIdentifiers, getMember, getMembers, hashCode, registerType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER_OBF

public static final String IDENTIFIER_OBF
See Also:
Constant Field Values

IDENTIFIER_MD5

public static final String IDENTIFIER_MD5
See Also:
Constant Field Values

IDENTIFIER_MD5HEX

public static final String IDENTIFIER_MD5HEX
See Also:
Constant Field Values

IDENTIFIER_SHA

public static final String IDENTIFIER_SHA
See Also:
Constant Field Values

IDENTIFIER_SHAHEX

public static final String IDENTIFIER_SHAHEX
See Also:
Constant Field Values

IDENTIFIER_WHIRLPOOL

public static final String IDENTIFIER_WHIRLPOOL
See Also:
Constant Field Values

IDENTIFIER_WHIRLPOOLHEX

public static final String IDENTIFIER_WHIRLPOOLHEX
See Also:
Constant Field Values

OBF

public static final StringEncryptor OBF

MD5

public static final StringEncryptor MD5

MD5HEX

public static final StringEncryptor MD5HEX

SHA

public static final StringEncryptor SHA

SHAHEX

public static final StringEncryptor SHAHEX

WHIRLPOOL

public static final StringEncryptor WHIRLPOOL

WHIRLPOOLHEX

public static final StringEncryptor WHIRLPOOLHEX
Method Detail

getEncryptor

public static StringEncryptor getEncryptor(String identifier)

encrypt

public String encrypt(String value)
               throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

autoEncrypt

public static String autoEncrypt(String value)
                          throws NoSuchAlgorithmException
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

public static String obfuscate(String value)

deobfuscate

public static String deobfuscate(String value)

main

public static void main(String[] arguments)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.