php encrypt string and retrieve by decrypt code example Example: encryption and decryption in php example $decoded = base64_decode($encoded);