cryptico
Overview
Maintained version of cryptico library. The original library is from Link to original library
Why this library?
The original library is not maintained anymore. Its a great library for RSA, but as it was written quite a long time ago, it needs to be improved. I would have rather posted a PR but they won't merge it. So I made this to add the functionalities that I want :)
Added features
- You can encrypt javscript objects
The original library won't take objects to encrypt them. You can do that with this library.
- You can stringify private keys, and revert them back to keys.
The original library won't parse the stringified private keys correctly to revert them back to the private key. You can do that with this library.
Usage
I will document only the added features API, for complete usage refer to the original library.
- Import it
var cryptico = ;
- Object encryption
var senderPrivateKey = cryptico; var senderPublicKeyString = cryptico; //Won't work with original library.var Msg = first: 'first string' second: 'second string' third: 'third string'; var senderSideEncryption = cryptico;
- stringify and then revert the private key
Based upon the awesome answer on Stackoverflow.
var senderPrivateKey = cryptico;var senderPublicKeyString = cryptico; var stringKey = JSON; //APIvar parsedkey = cryptico;
I by no means own this library. This library is property of original authors :)