I am coding a solution that requires data to be encrypted in to strings of the same length.
The solution needs to meet this criteria:
- Easy implementation in PHP
- Creates same length output regardless of length(similar to MD5) edit: Time to redefine. Creates the same output length from the same input length.
- Can encrypt a string(disregard this)
- Public key encryption is fine, I will keep the key stored privately no matter what, and it won't be distributed.
Basically I just need some type of encryption that will handle this, MD5 would be the answer but I need to decrypt everything too.
I have spent hours looking this up. I haven't been able to find anything.