com.biuqu.encryptor.impl.Sm4SecureEncryptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bq-encryptor Show documentation
Show all versions of bq-encryptor Show documentation
easy use for mostly encryption
The newest version!
package com.biuqu.encryptor.impl;
import com.biuqu.encryption.factory.EncryptionFactory;
import com.biuqu.encryptor.BaseSingleEncryptor;
import com.biuqu.encryptor.model.EncryptorKey;
import org.bouncycastle.util.encoders.Hex;
/**
* 增强的国密中的对称加密算法的加密器
*
* @author BiuQu
* @date 2023/5/3 01:38
*/
public class Sm4SecureEncryptor extends BaseSingleEncryptor
{
public Sm4SecureEncryptor(EncryptorKey key)
{
super(EncryptionFactory.SecureSM4.createAlgorithm(), Hex.decode(key.getPri()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy