- All Implemented Interfaces:
org.miaixz.bus.core.Provider, Provider
高级加密标准,是下一代的加密算法标准,速度快,安全级别高; AES是一个使用128为分组块的分组加密算法,分组块和128、192或256位的密钥一起作为输入, 对4×4的字节数组上进行操作
众所周之AES是种十分高效的算法,尤其在8位架构中,这源于它面向字节的设计 AES 适用于8位的小型单片机或者普通的32位微处理器,并且适合用专门的硬件实现,硬件实现能够使其吞吐量(每秒可以到达的加密/解密bit数) 达到十亿量级
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.miaixz.bus.crypto.Provider
type
-
Constructor Details
-
RC4Provider
public RC4Provider()
-
Method Details
-
encrypt
public byte[] encrypt(String key,
byte[] content)
加密
- Specified by:
encrypt in interface Provider
- Parameters:
key - 密钥
content - 需要加密的内容
- Returns:
- 加密结果
-
decrypt
public byte[] decrypt(String key,
byte[] content)
解密
- Specified by:
decrypt in interface Provider
- Parameters:
key - 密钥
content - 需要解密的内容
- Returns:
- 解密结果