Giter Club home page Giter Club logo

cryptico-node's People

Contributors

phpmycoder avatar rca avatar wwwtyro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cryptico-node's Issues

License

Could you provide a license on this project? Would like to use it and know its open source

Import existing RSA to decrypt

Can I use an existing RSA private key and import it in cryptico in order to decrypt some encrypted message encrypted with cryptico?

AES

Is AES implemented as a standalone means to encrypt ? Like RSA is?

And if so, could you provide some documentation for it?

A bug in Nodejs environment...???

I am using cryptico and it was installed via npm - nodejs.
I try follow your snip-code as bellow
an suddenly get a error:
I really surprised..is cryptico just for browser only...???
Code:
var cryptico = require('cryptico')

// The passphrase used to repeatably generate this RSA key.
var PassPhrase = "The Moon is a Harsh Mistress.";

// The length of the RSA key, in bits.
var Bits = 1024;

var MattsRSAkey = cryptico.generateRSAKey(PassPhrase, Bits);

var MattsPublicKeyString = cryptico.publicKeyString(MattsRSAkey);

console.log(' publicKey: ', MattsPublicKeyString);

var PlainText = "Matt, I need you to help me with my Starcraft strategy.";

var EncryptionResult = cryptico.encrypt(PlainText, MattsPublicKeyString);

console.log(' PlainText: ', PlainText);

console.log('EncryptionResult: ', EncryptionResult);

var DecryptionResult = cryptico.decrypt(EncryptionResult, MattsRSAkey);

Error
publicKey: amm3Tx0RqSd4St+34UjlX2ILusFGc4xKh+3wrXSfmEkejnylA59QYW+aTL+rwrs5pX+DVLw9yqGzLPTfzxb+Yw==
PlainText: Matt, I need you to help me with my Starcraft strategy.
EncryptionResult: { status: 'success',
cipher: 'Z0XnO+UcENK+BMo67I3sQBvBNyg1hwdy2qaoPYeVHOL9z5MqL//8CWEucavpV+isN0jreChYQfzLg5DyD1C/Jw==?DyrgCSDmmnUbJ8BP0htAcx0TGZAGb8G/EXIJsDpnFaYlEiUEseNyRmHiJux3Lu4hmAAmo0IMFYhHcUN0M2TFESimUV7e3BTdm+GGBHu/B6E=' }
D:\Labs\Web\SampleCode\Factory\node_modules\cryptico\lib\cryptico.js:2956
var cipherblock = ciphertext.split("?");
^
TypeError: undefined is not a function
at Object.module.exports.my.decrypt (D:\Labs\Web\SampleCode\Factory\node_modules\cryptico\lib\cryptico.js:2956:38)
at Object. (D:\Labs\Web\SampleCode\Factory\index.js:86:33)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
11 Jul 19:53:14 - [nodemon] app crashed - waiting for file changes before starting...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.