Top "Cryptography" questions

CRYPTOGRAPHY MUST BE PROGRAMMING RELATED.

Simplest two-way encryption using PHP

What is the simplest way of doing two way encryption in common PHP installs? I need to be able to …

php security encryption cryptography encryption-symmetric
Given final block not properly padded

I am trying to implement password based encryption algorithm, but I get this exception: javax.crypto.BadPaddingException: Given final block …

java exception encryption cryptography javax.crypto
How to decrypt SHA-256 encrypted String?

I have a string that was encoded using the following method, is there a way to decode this string back …

java hash cryptography
PHP AES encrypt / decrypt

I found an example for en/decoding strings in PHP. At first it looks very good but it wont work :…

php encryption cryptography aes encryption-symmetric
Fundamental difference between Hashing and Encryption algorithms

I see a lot of confusion between hashes and encryption algorithms and I would like to hear some more expert …

security encryption hash cryptography
Padding is invalid and cannot be removed?

I have looked online for what this exception means in relation to my program but can't seem to find a …

c# cryptography
Encrypt Password in Configuration Files?

I have a program that reads server information from a configuration file and would like to encrypt the password in …

java security encryption configuration cryptography
How to encrypt/decrypt data in php?

I'm currently a student and I'm studying PHP, I'm trying to make a simple encrypt/decrypt of data in PHP. …

php security encryption cryptography encryption-symmetric
Why are primes important in cryptography?

One thing that always strikes me as a non-cryptographer: Why is it so important to use Prime numbers? What makes …

cryptography primes
MD5 hashing in Android

I have a simple android client which needs to 'talk' to a simple C# HTTP listener. I want to provide …

android cryptography md5