public class AesCryptoFactory extends Object implements CryptoFactory
| Constructor and Description |
|---|
AesCryptoFactory() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(String key,
byte[] content)
解密
|
byte[] |
encrypt(String key,
byte[] content)
加密
|
public byte[] encrypt(String key, byte[] content)
encrypt in interface CryptoFactorykey - 密钥content - 需要加密的内容public byte[] decrypt(String key, byte[] content)
decrypt in interface CryptoFactorykey - 密钥content - 需要解密的内容Copyright © 2019. All rights reserved.