|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.util.EncryptUtils
public class EncryptUtils
String encryption utility methods.
Constructor Summary | |
---|---|
EncryptUtils()
|
Method Summary | |
---|---|
static byte[] |
encrypt(byte[] source,
String algorithm)
Encrypt byte array. |
static String |
encrypt(String source,
String algorithm)
Encrypt string |
static String |
encryptMD5(String source)
Encrypt string using MD5 algorithm |
static String |
encryptSHA(String source)
Encrypt string using SHA algorithm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncryptUtils()
Method Detail |
---|
public static byte[] encrypt(byte[] source, String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String encrypt(String source, String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String encryptMD5(String source)
public static String encryptSHA(String source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |