Function to encrypt or decrypt a string code example Example: encryption and decryption in php example $decoded = base64_decode($encoded);