
com.dxy.library.util.cipher.constant.Algorithm Maven / Gradle / Ivy
The newest version!
package com.dxy.library.util.cipher.constant;
/**
* 加密算法类型
* 全部算法类型见官方文档:https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#AlgorithmParameterGenerator
* @author duanxinyuan
* 2019/2/19 21:13
*/
public enum Algorithm {
//散列算法
MD5("MD5"),
SHA("SHA"),
SHA1("SHA-1"),
SHA224("SHA-224"),
SHA256("SHA-256"),
SHA384("SHA-384"),
SHA512("SHA-512"),
SM3("SM3"),
//对称加密算法
DES("DES"),
DESede("DESede"),
AES("AES"),
Blowfish("Blowfish"),
SM4("SM4"),
RC4("RC4"),
//非对称加密算法
RSA("RSA"),
//SM2的算法
EC("EC"),
;
String algorithm;
Algorithm(String algorithm) {
this.algorithm = algorithm;
}
public String getAlgorithm() {
return algorithm;
}
public void setAlgorithm(String algorithm) {
this.algorithm = algorithm;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy