Is there a way to encrypt any string or file of any length and return a key with a fixed length.
e.g:
$str = 'Hello World!';
encrypt($str);//returns: "abc123"//a fixed length of characters.
decrypt('abc123');//returns: "Hello World!"//the contents of the original string.
above is in php
Can be any computer language:
Can be any fixed number as long as it's fixed
by fixed i mean always the same: 32 character, 64 characters or X characters.
I have researched a little and it looks like it's hard or imposible. but you never know i thought it might be worthed asking
if you dont ask you don't get :) thnx