smt-sm4
v1.1.4
Published
sm4
Downloads
4
Readme
npm i smt-sm4
import { SM4Decrypt, SM4Encrypt, getBigKey } from 'smt-sm4';
SM4Encrypt(originWord, g, p)
originWord:需要加密的原始值
g: 服务端g值
p: 服务端p值
SM4Decrypt(encryptWord, server_number, p)
encryptWord: 加密后的值
server_number: 服务端server_number值
p: 服务端p值
getBigKey(g, p)
g: 服务端g值
p: 服务端p值