public final class Crypts extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
decryptByAES(String content,
String key)
Decrypts by AES.
|
static String |
encryptByAES(String content,
String key)
Encrypts by AES.
|
static String |
signHmacSHA1(String source,
String secret)
Signs the specified source string using the specified secret.
|
public static String signHmacSHA1(String source, String secret)
source - the specified source stringsecret - the specified secretpublic static String encryptByAES(String content, String key)
content - the specified content to encryptkey - the specified keydecryptByAES(java.lang.String, java.lang.String)public static String decryptByAES(String content, String key)
content - the specified content to decryptkey - the specified keyencryptByAES(java.lang.String, java.lang.String)Copyright © 2009–2019 B3log. All rights reserved.