
The highest tagged major version is
v2.
package
Version:
v1.1.0-alpha
Opens a new window with list of versions in this module.
Published: Oct 22, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Crypto模块包含了客户端加解密相关内容
本工具目前仅支持AES-GCM-NoPadding加密方式
NewCrypto构造一个新的Crypto,传入你的加密密钥
加密密钥位数限定16,24或32,分别对应AES-128,AES-192或AES-256算法
本工具中,GCM下NonceSize为默认长度12,不提供修改接口
如若修改NonceSize,请自行实现并务必牢记加解密保持一致
Source Files
¶
Click to show internal directories.
Click to hide internal directories.