It’s commonly used to store sensitive info in databases, like passwords. If an unauthorized person gains access to the database they won’t acquire the actual passwords, only the encrypted hash you’ve stored. It’s also used for verifying the integrity of file content. A hash of [myfile]sometext[/myfile] can prove that a hacker didn’t tamper with it because the hash of the original and [myfile]sometaintedtext[/myfile] are different.
Depending on your need, you could explore writing your own obfuscation library. I’m pretty sure there are 2 way encryption libs, mcrypt or SHA1? But I’ve never used a 2 way myself. [import]uid: 4596 topic_id: 9753 reply_id: 35593[/import]