Jump to content

php encryption


php_nub

Recommended Posts

Hello,

Im looking to encrypt any sting no matter how long (well to an extent) so it is only like 16 or so characters long.

I was trying to use the crypt function wish a hash... but I found out that you can not decrypt that....

 

Anyone know of a encryption that is able to be decrypted that will leave a encrypted value around 16 characters?

Link to comment
https://forums.phpfreaks.com/topic/202707-php-encryption/
Share on other sites

Well... services like tinyurl do not work like you seem to be thinking they do.

They store full original url in database, and generate more or less random 'short' url, which is also stored into a database. Then whenever someone tries to access 'short' url, a full url is retrieved from database, and user is redirected there. No compression is used.

Link to comment
https://forums.phpfreaks.com/topic/202707-php-encryption/#findComment-1062491
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.