public class DesUtil extends Object
| Constructor and Description |
|---|
DesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Key |
convertSecretKey(byte[] keyBytes)
转换encoded key
|
static Cipher |
getCipher()
get des cipher
|
public static Key convertSecretKey(byte[] keyBytes) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException
keyBytes - xxxInvalidKeyException - xxxNoSuchAlgorithmException - xxxInvalidKeySpecException - xxxpublic static Cipher getCipher() throws NoSuchPaddingException, NoSuchAlgorithmException
NoSuchPaddingException - xxxNoSuchAlgorithmException - xxxCopyright © 2019. All rights reserved.