All Projects → xiaolieask → Rsa Javascript

xiaolieask / Rsa Javascript

rsa-javascript

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Rsa Javascript

Swiftyrsa
RSA public/private key encryption in Swift
Stars: ✭ 894 (+6776.92%)
Mutual labels:  encryption, rsa
Encryptor4j
Strong encryption for Java simplified
Stars: ✭ 92 (+607.69%)
Mutual labels:  encryption, rsa
Hybrid Crypto Js
RSA+AES hybrid encryption implementation for JavaScript. Works with Node.js, React Native and modern browsers.
Stars: ✭ 87 (+569.23%)
Mutual labels:  encryption, rsa
Easyrsa
Simple and Secure Wrapper for phpseclib
Stars: ✭ 183 (+1307.69%)
Mutual labels:  encryption, rsa
Jsrsasign
The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.
Stars: ✭ 2,760 (+21130.77%)
Mutual labels:  encryption, rsa
Encrypt
🔒 A set of high-level APIs over PointyCastle for two-way cryptography.
Stars: ✭ 199 (+1430.77%)
Mutual labels:  encryption, rsa
Open Crypto
🔑 Hashing (BCrypt, SHA2, HMAC), encryption (AES), public-key (RSA), and random data generation.
Stars: ✭ 115 (+784.62%)
Mutual labels:  encryption, rsa
fluffychat
🐑 Decentralized chat with private messages and rooms. Messages and files are encrypted using RSA
Stars: ✭ 25 (+92.31%)
Mutual labels:  encryption, rsa
Aes Rsa Java
AES+RSA结合应用java示例
Stars: ✭ 295 (+2169.23%)
Mutual labels:  encryption, rsa
Peazip
Free Zip / Unzip software and Rar file extractor. Cross-platform file and archive manager. Features volume spanning, compression, authenticated encryption. Supports 7Z, 7-Zip sfx, ACE, ARJ, Brotli, BZ2, CAB, CHM, CPIO, DEB, GZ, ISO, JAR, LHA/LZH, NSIS, OOo, PAQ/LPAQ, PEA, QUAD, RAR, RPM, split, TAR, Z, ZIP, ZIPX, Zstandard.
Stars: ✭ 827 (+6261.54%)
Mutual labels:  encryption
Ylva
Command line password manager for Unix-like operating systems
Stars: ✭ 23 (+76.92%)
Mutual labels:  encryption
Rage
A simple, secure and modern encryption tool (and Rust library) with small explicit keys, no config options, and UNIX-style composability.
Stars: ✭ 826 (+6253.85%)
Mutual labels:  encryption
Notlitecode
Remote Encrypted Procedure Calling for .Net & .Net Core
Stars: ✭ 16 (+23.08%)
Mutual labels:  encryption
Fernet Java8
Java 8 implementation of the Fernet Specification
Stars: ✭ 24 (+84.62%)
Mutual labels:  encryption
Server
The Etebase server (so you can run your own)
Stars: ✭ 826 (+6253.85%)
Mutual labels:  encryption
Jose
JSON Object Signing and Encryption for Node.js and the browser
Stars: ✭ 25 (+92.31%)
Mutual labels:  encryption
Sdk Js
Tanker client-side encryption SDK for JavaScript
Stars: ✭ 786 (+5946.15%)
Mutual labels:  encryption
Minizip Ng
Fork of the popular zip manipulation library found in the zlib distribution.
Stars: ✭ 750 (+5669.23%)
Mutual labels:  encryption
Nippy
High-performance serialization library for Clojure
Stars: ✭ 838 (+6346.15%)
Mutual labels:  encryption
Openssl Nodejs
is a package which gives you a possibility to run every OpenSSL command 🔒 in Node.js in a handy way. Moreover, parameters like -in, -keyin, -config and etc can be replaced by a raw data (Buffor).
Stars: ✭ 25 (+92.31%)
Mutual labels:  rsa

rsa-javascript

rsa-javascript

NPM 下载包

npm i rsa-javascript --save-dev

js使用 (加密)

import RSA from 'rsa-javascript'
var rsa_m = "b582bfab21f62568d50d2e216c2bf2a76f9e2742b0914d130e76e8d3c24a6a28ba38a4d623d92b66af25844de17138216d0adffb8b14d4ad4d911868e420e9580b7d78e21d1d24a0ed3d7c3dfa61725b55705afb5fa2249478a4c46f3d6d48782111c744bd5abaaa5490ba488b00465a6e2c1f104df44d0ea0f7bf57e985e19d"
var rsa_e = "10001"
RSA.setMaxDigits(130) //131 => n的十六进制位数/2+3
cont key = new RSA.RSAKeyPair(rsa_e, '', rsa_m) //e,m是从通过后台Java穿过来的
var password = "123456";
password = RSA.encryptedString(key, password); // 对你的密码加密处理 ,不支持汉字
// 将password传递到后台,在后台使用Java解密

java使用 (解密)

Java生成秘钥及存储私钥进Redis
//解密
try {
    PrivateKey privateKey = SecurityKeyUtil.getPrivateKey(UserAspect.privateKeyString);
    aco = SecurityKeyUtil.decrypt(privateKey, aco);
    pwd = SecurityKeyUtil.decrypt(privateKey, pwd);
} catch (Exception e) {
    e.printStackTrace();
    throw new PersonUserException(PersonUserEnum.SESSION_TIMEOUT);
}

For detailed explanation on how things work, checkout the docs for rsa-javascript.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].