New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bif-encryption

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bif-encryption

该工具包主要用于加密以及解密的,index中封装的是相对应的方法

latest
npmnpm
Version
1.0.2
Version published
Maintainers
0
Created
Source

基础包

该工具包主要用于加密以及解密的,index中封装的是相对应的方法

node版本

v20.0.0

主要功能:

一、生成公私钥地址

Ed25519算法生成getBidAndKeyPair()
SM2算法生成getBidAndKeyPairBySM2()

二、私钥对象使用

签名方式构造privateKeyManager()
私钥构造privateKeyManagerByKey()
根据私钥获取公钥getEncPublicKey()
原生私钥转星火私钥getEncPrivateKeyByRaw()
原生公钥转星火公钥getEncPublicKeyByRaw()
签名sign()

三、公钥对象使用

构造对象publicKeyManager()
验签verify()

四、密钥存储器

生成密钥存储器generateKeyStore()
解析密钥存储器decipherKeyStore()

五、助记词

生成助记词generateMnemonicCode()

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts