public class SM2ToSM3NativeTextEncryptor extends SM2ToSM3TextEncryptor
randomStringGenerator, sm3TextEncryptor, toSM3logger| 构造器和说明 |
|---|
SM2ToSM3NativeTextEncryptor(EncryptionProperties encryptionProperties) |
SM2ToSM3NativeTextEncryptor(EncryptionProperties encryptionProperties,
boolean toSM3) |
SM2ToSM3NativeTextEncryptor(String pubKeyHex,
String prvKeyHex) |
SM2ToSM3NativeTextEncryptor(String pubKeyHex,
String prvKeyHex,
boolean toSM3) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
decryptWithSM2(String encryptedText)
SM2算法解密
|
String |
encrypt(String text) |
protected String |
sm3Encrypt(String text) |
decrypt, encryptInternal, sm2DecryptAndSm3VerifyRP, sm2DecryptAndSm3VerifyRPcreateSm2Util, getPrvKeyHex, getPubKeyHex, getRsaPublicCode, getSm2Utilspublic SM2ToSM3NativeTextEncryptor(EncryptionProperties encryptionProperties, boolean toSM3)
public SM2ToSM3NativeTextEncryptor(EncryptionProperties encryptionProperties)
public SM2ToSM3NativeTextEncryptor(String pubKeyHex, String prvKeyHex, boolean toSM3)
public String encrypt(String text)
encrypt 在接口中 org.springframework.security.crypto.encrypt.TextEncryptorencrypt 在类中 SM2ToSM3TextEncryptorprotected String sm3Encrypt(String text)
sm3Encrypt 在类中 SM2ToSM3TextEncryptorpublic String decryptWithSM2(String encryptedText)
SM2ToSM3TextEncryptordecryptWithSM2 在类中 SM2ToSM3TextEncryptorencryptedText - SM2解密后的密文Copyright © 2023. All rights reserved.