public class DESede extends SymmetricCrypto
Constructor and Description |
---|
DESede()
构造,默认DESede/ECB/PKCS5Padding,使用随机密钥
|
DESede(byte[] key)
构造,使用默认的DESede/ECB/PKCS5Padding
|
DESede(Mode mode,
Padding padding)
构造,使用随机密钥
|
DESede(Mode mode,
Padding padding,
byte[] key)
构造
|
DESede(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
DESede(Mode mode,
Padding padding,
SecretKey key)
构造
|
DESede(Mode mode,
Padding padding,
SecretKey key,
IvParameterSpec iv)
构造
|
DESede(String mode,
String padding)
构造
|
DESede(String mode,
String padding,
byte[] key)
构造
|
DESede(String mode,
String padding,
byte[] key,
byte[] iv)
构造
|
DESede(String mode,
String padding,
SecretKey key)
构造
|
DESede(String mode,
String padding,
SecretKey key,
IvParameterSpec iv)
构造
|
decrypt, decrypt, encrypt, encrypt, getCipher, getSecretKey, init, setIv, setIv, setMode, setParams, setRandom, update, updateHex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encrypt, encrypt, encrypt, encrypt, encryptBase64, encryptBase64, encryptBase64, encryptBase64, encryptBase64, encryptHex, encryptHex, encryptHex, encryptHex, encryptHex
decrypt, decrypt, decryptStr, decryptStr, decryptStr, decryptStr, decryptStr, decryptStr
public DESede()
public DESede(byte[] key)
key
- 密钥public DESede(Mode mode, Padding padding, SecretKey key, IvParameterSpec iv)
public DESede(String mode, String padding, byte[] key)
mode
- 模式padding
- 补码方式key
- 密钥,长度24位public DESede(String mode, String padding, byte[] key, byte[] iv)
mode
- 模式padding
- 补码方式key
- 密钥,长度24位iv
- 加盐public DESede(String mode, String padding, SecretKey key)
mode
- 模式padding
- 补码方式key
- 密钥public DESede(String mode, String padding, SecretKey key, IvParameterSpec iv)
mode
- 模式padding
- 补码方式key
- 密钥iv
- 加盐Copyright © 2024. All rights reserved.