public class DES extends SymmetricCrypto
Constructor and Description |
---|
DES()
构造,默认DES/ECB/PKCS5Padding,使用随机密钥
|
DES(byte[] key)
构造,使用默认的DES/ECB/PKCS5Padding
|
DES(Mode mode,
Padding padding)
构造,使用随机密钥
|
DES(Mode mode,
Padding padding,
byte[] key)
构造
|
DES(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
DES(Mode mode,
Padding padding,
SecretKey key)
构造
|
DES(Mode mode,
Padding padding,
SecretKey key,
IvParameterSpec iv)
构造
|
DES(String mode,
String padding)
构造
|
DES(String mode,
String padding,
byte[] key)
构造
|
DES(String mode,
String padding,
byte[] key,
byte[] iv)
构造
|
DES(String mode,
String padding,
SecretKey key)
构造
|
DES(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 DES()
public DES(byte[] key)
key
- 密钥public DES(Mode mode, Padding padding, SecretKey key, IvParameterSpec iv)
public DES(String mode, String padding, byte[] key)
mode
- 模式padding
- 补码方式key
- 密钥,长度:8的倍数public DES(String mode, String padding, byte[] key, byte[] iv)
mode
- 模式padding
- 补码方式key
- 密钥,长度:8的倍数iv
- 加盐public DES(String mode, String padding, SecretKey key)
mode
- 模式padding
- 补码方式key
- 密钥,长度:8的倍数public DES(String mode, String padding, SecretKey key, IvParameterSpec iv)
mode
- 模式padding
- 补码方式key
- 密钥,长度:8的倍数iv
- 加盐Copyright © 2024. All rights reserved.