4
Does anyone know any way to encrypt any data, two-Handle, so I can decrypt it? I loved the MD5 and the way it fixes the length of the hash, the problem is that there is no way to decrypt (unidirectional/one-Handle).
Base64 is bad for me because it usually increases the size of what I’ve written, 30% larger (as described in the manual), and actually the intention of cryptography is to decrease...
The text to be encrypted must vary from 10~100 characters, alpha-numeric, and the field where I want to store the encryption will not accept more than 32.
You can detail a little bit more ?
– Edilson
base64
is not encryption algorithm. Are you sure that what you want is not a compression algorithm? Cryptography is not decreasing data, but hiding data. Who decreases the size of the data is compression. Putting something the size of 100 characters in a field that accepts only 32 will be quite complicated, unless your dice have very specific characteristics that allow great compression. And yet, I don’t know algorithms that work with so little overhead. Detail more your problem.– Vinícius Gobbo A. de Oliveira
@Wineusgobboa.deOliveira , so Base64 is coding instead of encryption? I confused the concepts.. yes, of compression it may help me, the idea is that it occupies up to 32 characters a text that can vary from 10~100. It’s hard to explain why I have to do this, but it really needs to be this way. I saw something with gzcompress, but it seems that the characters are bugged, will it disturb when saving in the database?..
– Ale