Questions tagged [pidcrypt]

pidCrypt is a JavaScript cryptographic library implementing RSA, AES, SHA2, etc…

pidCrypt is an open source JavaScript library of cryptographical methods combined in a modular class model. This is meant to facilitate a more efficient use of these methods. pidCrypt supports RSA and AES encryption and decryption, MD5 and SHA Hashes, ASN parsing and Base64/UTF8 en-/decoding. The RSA and AES-CBC en-/decryption are compatibility with OpenSSL. When compressed the whole library has a size of ~73kB.

16 questions
8
votes
5 answers

php mcrypt to javascript aes integration

I am trying to use javascript to encode data with AES-256-CBC and php mcrypt libraries to decode, and vise versa. I am aware of the problematic nature of javascript and the fact that anyone sees the key, but I am using javascript a scripting tool…
Moshe Marciano
  • 2,309
  • 3
  • 32
  • 43
6
votes
1 answer

RSA Publickey implemenation in android

I have implemented RSA cryptography using in php, javascript, and android app using library: phpseclib for php side pidcrypt for javascript bouncrycastle version(bcprov-jdk14-151) for anrdroid serviceprovider I have my cryptography mechanism…
Asif Bakht
  • 81
  • 5
3
votes
0 answers

PidCrypt AES decrypt error - byteArray2String is not defined

I am trying use pidCrypt (javascript library https://sourceforge.net/projects/pidcrypt/) to decrypt crypted text by AES. MAC mini, OS X Yosemite, v.10.10.1 Mozilla FF 35.0.1 I using this files:
Lajdák Marek
  • 2,517
  • 4
  • 24
  • 47
2
votes
4 answers

Javascript + PHP Encryption with pidCrypt

I have been working on trying to implement an encryption mechanism for passing secure information on my website. My host charges extra for SSL, and I am not ready for the extra monetary commitment. I tried to use pidCrypt to encrypt the values on…
digitaleagle
  • 824
  • 1
  • 9
  • 15
2
votes
1 answer

RSA - PyCrypto and Javascript RSA libraries (PidCrypt) encoding problems

I need to send a string encoded in RSA between a Chrome extension and a Python webserver, the reply will also need to contain an encrypted string. The communication is indirect, so SSL won't do, as there is a server in between mediating using SSL…
unixsnob
  • 1,505
  • 2
  • 15
  • 40
2
votes
2 answers

RSA communication between Javascript and Python

I am working on a prototype, so it needs to use RSA between a Chrome Extension and a Python Server. So far I was planning on using https://sourceforge.net/projects/pidcrypt/ and https://www.dlitz.net/. However, while I can get decrypt and encrypt…
unixsnob
  • 1,505
  • 2
  • 15
  • 40
1
vote
0 answers

i'm try to use pidCrypt RSA encryption library with React js but it's return "pidCrypt is not defined" error

when I try it with Html and vanilla javascript it's just working fine
1
vote
2 answers

How to convert RSA key numbers into OpenSSL-compatible keys?

I want to be able to generate private/public RSA keys with javascript only... So far I found http://www.hanewin.net/encrypt/rsa/rsa.htm, it includes the only Javascript RSA key generator I found. I created wrappers (modifying the code from the demo…
apirogov
  • 1,256
  • 1
  • 12
  • 22
1
vote
1 answer

Javascript pidCrypt RSA and PHP RSA decryption

i'm working on a site that invovles storing public/private RSA encrypted content, until recently i've been doing it all via javascript. I now need to be able to encrypt with public key in PHP, i've lost the last 6 hours to this problem. I'm willing…
1
vote
1 answer

RSA decryption with private key using phplib

I encrypt data in client side using pidcrypt-rsa with public key. I want to decrypt it in server side using php, I use phpseclib, but i get following error: Decryption error in C:\xampp*\Crypt\phpseclib0.3.8\Crypt\RSA.php on line 2503 this is my…
user3806649
  • 969
  • 2
  • 12
  • 35
1
vote
1 answer

Compatibility issues with pidcrypt and openssl_encrypt

I am designing an application that allows end users to take quizzes from their browsers. Part of the requirement is that when the quiz start time is around, the question should be displayed to every participant at once. This makes serving questions…
1
vote
2 answers

How to AES CBC encrypt using pidCrypt, then decrypt with phpseclib?

I need to encrypt a short string using Javascript (pidCrypt AES CBC) then decrypt it using PHP (phpseclib Crypt_AES CBC). There are so many incompatibilities between various libraries (tried many of them, some I couldn't even start to use because of…
Tiberiu-Ionuț Stan
  • 5,033
  • 5
  • 34
  • 61
0
votes
1 answer

Unsure why I am getting errors when attempting to publish Github Rep to Heroku

I wanted to create and customize an internal mobile device checkout system for work (to better keep inventory). I found this project on GitHub, that seemed like I could use its design pattern as a framework for my system. The problem is, after I…
0
votes
0 answers

decryption at client side with javascript?

I am getting an encrypted text on the client side which has been encrypted at server(with java) using AES-256 bit , and SHA-256 (2048 bit), i have no idea how to decrypt it. (provided that i am having a key at the client side which has been used at…
Novice
  • 303
  • 4
  • 27
0
votes
0 answers

rsa js pidCrypt encryption java decryption

I am trying to encrypt some simple message with pidCrypt in browser, then decrypt it with java crypto on the server. But I kept getting the error message: javax.crypto.IllegalBlockSizeException: Data must not be longer than 128 bytes Keys: keys are…
rickcoup
  • 235
  • 3
  • 16
1
2