Package com.identity4j.util.unix
Class MD5Crypt
- java.lang.Object
-
- com.identity4j.util.unix.MD5Crypt
-
public class MD5Crypt extends Object
Porting from the C version of Flash Authoring flashfarm://depot/main/authortool/Utility/md5.cpp#4 The MD5 algorithm was not ported - using JDK version available since 1.3- Author:
- cmurphy
-
-
Constructor Summary
Constructors Constructor Description MD5Crypt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringcrypt_md5(byte[] pw, String salt)static Stringcrypt_md5(byte[] pw, String salt, String magic)static Stringmd5Crypt(String password, String charset)static booleanverifyMD5Password(String plaintext, String ciphertext)
-
-
-
Method Detail
-
crypt_md5
public static String crypt_md5(byte[] pw, String salt) throws NoSuchAlgorithmException, UnsupportedEncodingException
-
crypt_md5
public static String crypt_md5(byte[] pw, String salt, String magic) throws NoSuchAlgorithmException, UnsupportedEncodingException
-
verifyMD5Password
public static boolean verifyMD5Password(String plaintext, String ciphertext) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
md5Crypt
public static String md5Crypt(String password, String charset) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-