Tagged Questions
3
votes
0answers
44 views
How to deal with block length in Node.js crypto streams
I want to crypt an input stream and send it to another server via TCP. So far so good. Everything runs smoothly, until the connection is closed. In almost any case the needed block size of 192 bits is ...
0
votes
3answers
64 views
creating a simple one-way hash
Are there any standard hash functions/methods that maps an arbitrary 9 digit integer into another (unique) 9 digit integer, such that it is somewhat difficult to map back (without using brute force).
...
0
votes
3answers
51 views
Is there any library for javascirpt to read .cer file and get key from it?
I want to encrypt data on client side and web application take .cer file from user local computer.After take I will use keys to encrypt data but I want to library or any way to read .cer file I ...
1
vote
2answers
52 views
problems with RSA decryption formula
I'm trying to decrypt a message that was encrypted using the RSA algorithm
The example from above is taken from Website, so I tried to implement it in C#:
int msg = 67;
int Ee = 5;
int Nn = 91;
...
0
votes
0answers
29 views
What will it take to make this miner work with new pools?
This might fit better at bitcoin.stackexchange but since it's so involved with JS I'll post it here.
If found this pretty slick https://github.com/jwhitehorn/jsMiner. It appears that it's using 100% ...
0
votes
2answers
43 views
Can't bridge Elliptic Curve Diffie-Hellman with javascript
I know this is a very specific question but I tried to exchange keys between php and a client using the Elliptic Curve Diffie-Hellman algorithm (ECDH) based on 2 libraries that seem sound:
...
0
votes
1answer
68 views
Node.js crypto module
I am trying to implement encryption in node.js using the crypto module. Below is a snippet of my code:
var SECRET_KEY = "RANDOMKEY";
var crypto = require("crypto");
var MD5 = ...
0
votes
0answers
27 views
Do I need to notify DoD if I use an unmodified crypto-js library? [closed]
If I am using the library here: https://code.google.com/p/crypto-js/
Is it necessary to notify the DoD of the use on my website because of ITAR and export laws? I'm just trying to clarify.
I was ...
1
vote
1answer
150 views
Stuck implementing HMAC in javascript
I've been trying to code HMAC algorithm in Javascript but have got to a point where I can not figure out what is going wrong. I'm at the point where you create the inner hash, but the returned value ...
1
vote
3answers
316 views
Strange issue with AES CTR mode with Python and Javascript
I'm trying to decrypt a ciphertext created by CryptoJS using PyCrypto. I am using AES-256-CTR, with a 12-byte random prefix and 4-byte counter. So far, I've had limited success. Please read this ...
2
votes
1answer
142 views
Compatibility of window.crypto.getRandomValues()
I need to generate cryptographically secure pseudorandom numbers, in Javascript. I know about the window.crypto.getRandomValues API, which does exactly what I want. However, I also know it was ...
0
votes
3answers
132 views
Is AES-CTR in CryptoJS compatible with PyCrypto?
I'm trying to decrypt some AES-CTR-256 data using the PyCrypto library. The ciphertext was produced by the Cryptocat multiparty chat Javascript code, which relies on the CryptoJS library. The IV ...
1
vote
1answer
39 views
Error in crypto deciphering
Why does the following code throw up a DecipherFinal error in crypto -
var crypto = require('crypto');
c=new Date;
x= (c.getTime()+"."+c.getMilliseconds()).toString()+".uIn";
key = ...
0
votes
1answer
47 views
floating point number from crypto.randomBytes() in javascript
How do I convert the array of bytes returned from crypto.randomBytes into a to a floating point number? I'm writing a small replacement for Math.random()
0
votes
1answer
69 views
Unable to properly encrypt data in Javascript using jsbn
I am having trouble encrypting data in JavaScript using Tom Wu's jsbn library.
I wind up with an encrypted data, however when I try and decrypt the data on PHP, openssl_private_decrypt returns false.
...