yggjs-gm
Version:
国密算法 TypeScript 库 - 支持 SM2/SM3/SM4 算法的现代化实现
19 lines (17 loc) • 468 B
text/typescript
/**
* 国密算法 TypeScript 库主入口
*
* @description 提供 SM2/SM3/SM4 国密算法的现代化 TypeScript 实现
* @version 0.1.0
* @author YggJS Team
* @license Apache-2.0
*/
declare const _default: {
getKey: () => {
privateKey: string;
publicKey: string;
};
sm2Encrypt: (publicKey: string, text: string) => string;
sm2Decrypt: (privateKey: string, encryptedText: string) => string;
};
export { _default as default };