8000 GitHub - atul19971/crypto4js
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

atul19971/crypto4js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crypto4js

Features

  • Crypto4js has implemented RSA encryption(PKCS1Padding) feature with plane javascript.

Docs

Usage

  • Download crypto4js.min.js and include it in your html file.

Encryption

RSA Encryption can be done using public key(modulus and exponent):

//Pass modulus and exponent in Hexcode or Base64 format.
var modulus = "a5261939975948bb7a58dffe5ff54e65f0498f9175f5a09288810b8975871e99af3b5dd94057b0fc07535f5f97444504fa35169d461d0d30cf0192e307727c065168c788771c561a9400fb49175e9e6aa4e23fe11af69e9412dd23b0cb6684c4c2429bce139e848ab26d0829073351f4acd36074eafd036a5eb83359d2a698d3";
var exponent = "10001";
var textToEncrypt = "This is cipher Text.";
var crypt=new Crypto();
var base64EncryptedText = crypt.RSAEncrypt(modulus,exponent,textToEncrypt);

Roadmap

  • Will add more crypto algorithm in future.
  • Decryption will be provided in next release.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0