com.biuqu.encryption.impl.Sm3Hash 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.encryption.impl;
import com.biuqu.encryption.BaseHash;
import com.biuqu.encryption.Hash;
/**
* SM3多形态hash算法
*
* @author BiuQu
* @date 2023/4/30 16:51
*/
public class Sm3Hash extends BaseHash implements Hash
{
public Sm3Hash()
{
this.setAlgorithm(ALGORITHM);
}
@Override
public byte[] digest(byte[] data)
{
return this.calc(data);
}
/**
* SM3摘要算法
*/
private static final String ALGORITHM = "SM3";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy