类 SecurityUtil
- java.lang.Object
-
- cn.vorbote.commons.SecurityUtil
-
public final class SecurityUtil extends Object
This tool class can convert String to Base64-String or MD5-String- 作者:
- TheodoreHills
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringBase64Decode(String value)Decode the string via Base64static StringBase64Encode(String value)Encrypt the string via Base64static StringMd5Encrypt(String value)Encrypt the string via MD5
-
-
-
方法详细资料
-
Md5Encrypt
public static String Md5Encrypt(String value)
Encrypt the string via MD5
Be advised: You will not able to recover this encrypted String
- 参数:
value- The string will be encrypted- 返回:
- The encrypted String
-
Base64Encode
public static String Base64Encode(String value)
Encrypt the string via Base64- 参数:
value- The string will be encrypted- 返回:
- The encrypted String
-
-