public class RsaCryptoFactory extends Object implements CryptoFactory
| Constructor and Description |
|---|
RsaCryptoFactory() |
| 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) throws RuntimeException
encrypt in interface CryptoFactorykey - 密钥content - 需要加密的内容RuntimeException - RuntimeExceptionpublic byte[] decrypt(String key, byte[] content) throws RuntimeException
decrypt in interface CryptoFactorykey - 密钥content - 需要解密的内容RuntimeException - RuntimeExceptionCopyright © 2019. All rights reserved.