All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.biuqu.encryptor.impl.Sm4SecureEncryptor Maven / Gradle / Ivy

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