org.sciplore.tools
Class Tools
java.lang.Object
org.sciplore.tools.Tools
public class Tools
- extends Object
Field Summary |
static String |
USERS_PASSWORDSALT
Cleans a String by removing all special chars, spaces and converting it to lower case |
Constructor Summary |
Tools()
|
USERS_PASSWORDSALT
public static final String USERS_PASSWORDSALT
- Cleans a String by removing all special chars, spaces and converting it to lower case
- See Also:
- Constant Field Values
Tools
public Tools()
cleanTitle
public String cleanTitle(String title)
isTitleIdentical
public int isTitleIdentical(String title1,
String title2)
extractTitleFromFile
public String extractTitleFromFile(File myfile)
convertToSaltedMD5Digest
public static String convertToSaltedMD5Digest(String salt,
String plainText)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
toHexString
public static String toHexString(byte b)
levenshtein
public static int levenshtein(int cut,
String s1,
String s2)
empty
public static boolean empty(Object o)