@Deprecated public class EncryptUtil extends Object
| 构造器和说明 |
|---|
EncryptUtil()
已过时。
|
public static String aesEncrypt(String encryptedText, String password) throws NoSuchPaddingException, BadPaddingException, NoSuchAlgorithmException, IllegalBlockSizeException, UnsupportedEncodingException, InvalidKeyException
encryptedText - 需要加密的文本password - 加密密码NoSuchPaddingExceptionBadPaddingExceptionNoSuchAlgorithmExceptionIllegalBlockSizeExceptionUnsupportedEncodingExceptionInvalidKeyExceptionpublic static String aesDecrypt(String encryptedText, String password) throws IllegalBlockSizeException, NoSuchPaddingException, BadPaddingException, NoSuchAlgorithmException, InvalidKeyException
encryptedText - 需解密的文本password - 加密密码IllegalBlockSizeExceptionNoSuchPaddingExceptionBadPaddingExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionCopyright © 2024. All rights reserved.