com.dahuatech.hutool.crypto.symmetric.SymmetricAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.hutool.crypto.symmetric;
/**
* 对称算法类型
* see:
* https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyGenerator
*
* @author Looly
*/
public enum SymmetricAlgorithm {
/** 默认的AES加密方式:AES/CBC/PKCS5Padding */
AES("AES"),
ARCFOUR("ARCFOUR"),
Blowfish("Blowfish"),
/** 默认的DES加密方式:DES/ECB/PKCS5Padding */
DES("DES"),
/** 3DES算法,默认实现为:DESede/CBC/PKCS5Padding */
DESede("DESede"),
RC2("RC2"),
PBEWithMD5AndDES("PBEWithMD5AndDES"),
PBEWithSHA1AndDESede("PBEWithSHA1AndDESede"),
PBEWithSHA1AndRC2_40("PBEWithSHA1AndRC2_40");
private String value;
/**
* 构造
*
* @param value 算法的字符串表示,区分大小写
*/
SymmetricAlgorithm(String value) {
this.value = value;
}
/**
* 获得算法的字符串表示形式
*
* @return 算法字符串
*/
public String getValue() {
return this.value;
}
}