Encryption/Decryption Examples: Getting Started

This script sequence illustrates encryption and decryption in PHP.

Original Message

Enter message:



Some Possible PHP Algorithms

blowfish blowfish-compat cast-128 cast-256
des gost loki97 rc2
rijndael-128 rijndael-192 rijndael-256 saferplus
serpent tripledes twofish xtea

Some Possible PHP Modes

cbc cfb ctr ecb
ncfb nofb ofb

Initial Vector Communication

Send initial vector with encoded message Store initial vector in database