public class MD5Crypt extends Object
| Constructor and Description |
|---|
MD5Crypt() |
| Modifier and Type | Method and Description |
|---|---|
static String |
crypt(String password)
LINUX/BSD MD5Crypt function
|
static String |
crypt(String password,
String salt)
LINUX/BSD MD5Crypt function
|
static String |
crypt(String password,
String salt,
String magic)
Linux/BSD MD5Crypt function
|
static boolean |
isEqual(char[] clear,
String encrypted) |
static boolean |
isEqual(String clear,
String encrypted) |
public static final String crypt(String password)
password - Password to be encryptedpublic static final String crypt(String password, String salt)
salt - Random string used to initialize the MD5 enginepassword - Password to be encryptedpublic static final String crypt(String password, String salt, String magic)
magic - $1$ for Linux/BSB, $apr1$ for Apache cryptsalt - 8 byte permutation stringpassword - user passwordExceptionpublic static boolean isEqual(char[] clear,
String encrypted)
Copyright © 2023 jUPnP.org. All rights reserved.