Top "Cryptography" questions

CRYPTOGRAPHY MUST BE PROGRAMMING RELATED.

What exactly is a rainbow attack?

I was reading a few articles on salts and password hashes and a few people were mentioning rainbow attacks. What …

cryptography saltedhash rainbowattack
Decryption Exception - length of the data to decrypt is invalid

I am working in a C# application. We have common methods to store data on a file. These methods encrypt …

c# encryption cryptography rijndael
Reasons why SHA512 is superior to MD5

I was wondering if I could reasons or links to resources explaining why SHA512 is a superior hashing algorithm to …

cryptography md5 hash sha512
How to convert from String to PublicKey?

I've used the following code to convert the public and private key to a string KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance("RSA"); …

java encryption cryptography public-key-encryption
AES encrypt/decrypt with Bouncy Castle provider

Here is my implementation of a AES 256 encrypt and decrypt, developed with the native library of JDK 5: public static String …

java cryptography aes bouncycastle
java equivalent to php's hmac-SHA1

I'm looking for a java equivalent to this php call: hash_hmac('sha1', "test", "secret") I tried this, using …

java php cryptography hmac
How do one-way hash functions work? (Edited)

I read the Wikipedia article about md5 hashes but I still can't understand how a hash can't be "reconstituted" back …

cryptography md5 cryptographic-hash-function
Storing passwords with Node.js and MongoDB

I'm looking for some examples of how to securely store passwords and other sensitive data using node.js and mongodb. …

javascript mongodb node.js cryptography aes
How do I get the public key of a pem file?

I have a .pem file containing my private key. However, a BitBucket deployment key has this format: ssh-rsa AAAAB3NzaC3…

ssh cryptography bitbucket private-key pem
RSA signature size?

I would like to know what is the length of RSA signature ? Is it always the same size as the …

security cryptography rsa digital-signature sha1