Questions tagged [cryptico]

Cryptico is an attempt to implement "an encryption system utilizing RSA and AES for javascript"

Cryptico is an attempt to implement "an encryption system utilizing RSA and AES for javascript"

20 questions
11
votes
2 answers

SSL Over Javascript

I've seen a few similar questions that don't quite seem to address my exact use case, and I THINK I've figured out the answer, but I'm a total noob when it comes to security, RSA, and pretty much everything associated with it. I have a basic…
citizenslave
  • 1,408
  • 13
  • 25
3
votes
1 answer

JSZip compress image upload, encrypt, decrypt, display image

Initially I was using FileReader to convert an image upload into base64 on the client side and then encrypt. Would attach that result to a form field and then submit but this is taking up way too much time so I'm looking for an alternative. I'm…
user300979
  • 389
  • 1
  • 4
  • 18
3
votes
1 answer

cryptico.js encrypted message, must decrypt in C#

I need to be able to decrypt a string on the server using C#, but the string was encrypted using public key encryption with cryptico.js on the client. For details, see context at the end. Cryptico gives me a private RSA key like this (note - 'like'…
dartacus
  • 654
  • 1
  • 5
  • 16
2
votes
1 answer

Is It Possible To Use RSA encryption instead of SSL in Web App when POSTing?

Let's say I want to build an app in which I don't want to register or can't get an SSL certificate (whatever the reason). I was wondering if it is possible to get security benefits of SSL by using RSA instead. Im using the CrypticoJS library -…
Meowzie
  • 21
  • 1
2
votes
0 answers

RSA encrypt/decrypt with phpseclib and Cryptico

I'm desperately searching for a way to encrypt/decrypt data between javascript using Cryptico and decrypt/encrypt using phpseclib.
glutorange
  • 993
  • 1
  • 10
  • 17
2
votes
1 answer

Encrypt with Cryptico.js, Decrypt with OpenSSL

I am creating a public/private key on the server, sending the key to the JavaScript client where it encrypts a users password. The client sends the password to the server, and the server uses the private key to decrypt it, but the password is…
user2372852
  • 21
  • 1
  • 3
1
vote
1 answer

openssl_private_decrypt() with ciphertext from cryptico.js return false

I am creating a public/private key on the server, sending the public key to the JavaScript client where it encrypts a users password using cryptico.js library: https://github.com/wwwtyro/cryptico/blob/master/cryptico.js $res =…
MTK
  • 3,300
  • 2
  • 33
  • 49
1
vote
1 answer

Save RSA Key object from Cryptico.js

I'm struggling to discover how to transform an javascript object, into some variable (array?) and save it with a code like: function onDownload() { document.location = 'data:Application/octet-stream,' + …
user2864778
  • 333
  • 5
  • 18
1
vote
1 answer

Extract RSA private key from Cryptico.js

I believe this is a pretty basic question, but I'm starting the studies in JavaScript and in RSA, so I'm a little bit lost. I just downloaded the library Cryptico, which gives me an easy to use RSA key gen/encryption/decryption. The public part of…
user2864778
  • 333
  • 5
  • 18
1
vote
1 answer

How to verify with PHP signature genrerated by cryptico.js

I try to sign messages in javascript before sending to a PHP application. The PHP application must check the signature to be sure it's not false. In javascript I use cryptico.js. This is the js function for signing messages var sign =…
Madef
  • 619
  • 5
  • 9
1
vote
1 answer

Encrypt message with Cryptico public key using PHP

Is it possible to generate an RSA public key from a passphrase using Cryptico, then use PHP to encrypt a message with that public key, and decrypt it with JavaScrpt using the original passphrase? Cryptico seems to work great on its own, but I'm…
NotSoSmart
  • 89
  • 12
0
votes
2 answers

practical use of cryptico.js

Cryptico seems like a super slick RSA encryption library. cryptico.wwwtyro.net In regards to JavaScript applications, suppose I want to send data to the client, have them do something to the data, and pass it back. How can I use RSA to ensure that…
ejang
  • 3,982
  • 8
  • 44
  • 70
0
votes
1 answer

Is there a way to generate RSA key pair client side with javascript?

I used Cryptico library and it is working fine, but the public key from Cryptico is not compatible with OpenSSL (meaning I can not use it to encrypt data with PHP as an example). I am asking how can I generate a key pair client side with the public…
0
votes
0 answers

Javascript Error using cryptico library for decryption

I have a string let's say choice="text to encrypt and decrypt" I am using a public key I produced with another program to encrypt and it works fine. I get the cipher text and try to decrypt it, but I am getting the following error. script.js:282 the…
Cheetara
  • 165
  • 1
  • 5
  • 14
0
votes
1 answer

Replacing cryptico.js with WebCryptoAPI - how do I get Public Key string?

I hope someone can help. I have been using cryptico.js and have been generating keys via: var RSAkey = cryptico.generateRSAKey(passphrase, 512); var publicKeyString = cryptico.publicKeyString(RSAkey); Giving me clean good access to a public key,…
1
2