Search code examples
phpmcrypt

Two sided encryption php


I'm looking for a simple two sided encryption for URL paths hiding. I've tried using mcrypt but I keep getting random encrypted string for the same word. I don't want to use anything that requires DB to save the encryptions. Any help is appreciated. Thanks


Solution

  • You can use

    base64_encode
    base64_decode
    or
    urlencode
    urldecode