xm
2024-06-14 722af26bc6fec32bb289b1df51a9016a4935610f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.dl.common.enums;
 
import com.dl.common.encrypt.encryptor.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
 
/**
 * 算法名称
 *
 * @author 老马
 * @version 4.6.0
 */
@Getter
@AllArgsConstructor
public enum AlgorithmType {
 
    /**
     * 默认走yml配置
     */
    DEFAULT(null),
 
    /**
     * base64
     */
    BASE64(Base64Encryptor.class),
 
    /**
     * aes
     */
    AES(AesEncryptor.class),
 
    /**
     * rsa
     */
    RSA(RsaEncryptor.class),
 
    /**
     * sm2
     */
    SM2(Sm2Encryptor.class),
 
    /**
     * sm4
     */
    SM4(Sm4Encryptor.class);
 
    private final Class<? extends AbstractEncryptor> clazz;
}