com.biuqu.encryptor.impl.Sm3HmacEncryptor 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.BaseHmacEncryptor;
import com.biuqu.encryptor.model.EncryptorKey;
import org.bouncycastle.util.encoders.Hex;
/**
* 默认的Hmac摘要器
*
* @author BiuQu
* @date 2023/5/3 00:37
*/
public class Sm3HmacEncryptor extends BaseHmacEncryptor
{
public Sm3HmacEncryptor(EncryptorKey key)
{
super(EncryptionFactory.SM3Hmac.createAlgorithm(), Hex.decode(key.getPri()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy