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

cpp_rsa

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpp_rsa

cpp_rsa.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

#cpp_rsa C++ rsa 加密解密

How to use the code

npm i cpp_rsa

var addon = require('bindings')('cpp_rsa'); let nodes = new addon.NODES( __dirname + "/rsa_public_key.pem", __dirname + "/rsa_private_key.pem"); let p1 = nodes.publicEncrypt("123456789") let w1 = nodes.privateDecrypt(p1) console.log("data", p1, w1)

let p2 = nodes.privateEncrypt("123456789") let w2 = nodes.publicDecrypt(p2) console.log("data2", p2, w2)

##环境准备 cmake cmake-js opencv curl curl -O http://static-res.haizitong.com/nodejs/cmake-3.3.2.tar.gz tar xzvf cmake-3.3.2.tar.gz cd cmake-3.3.2 ./bootstrap gmake make install

cd ../../

apt install libcrypto++-dev

npm i -g cmake-js ln -s /opt/node/bin/cmake-js /usr/local/bin/cmake-js

Keywords

rsa

FAQs

Package last updated on 12 May 2025

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