Encrypt Page [Usage]
...surf Decrypt Page to read the comments :-)
This is the text to encrypt and write in a file to save-store it.
...the same can be done in a database :-)
Later when we want to access its content we will then need :
1) The encrypted content.
2) The key that we used when encrypting.
3) The vector value $iv ...this changes everytime it is created
...so we must save it while encrypting.
The above text in red is set in the php variable $_string
It is necessary to save the whole $iv and $encrypted_string strings in files or in a database as we need all chars of them to deal with these properly when decrypting.
...for this reason we cannot store the values into variables as we should use the quote ['] or the doublequote char ["] to store the values into a variable.
$iv=Iw : 8
z
$encrypted_string=|
&FJ%0601҇a~h].m +]ƹe`_L.Yfr$ɷhd0\rũSslw|ດ)Vu
w`GGBĦ]l3 CFGw*!;̡y%?8ogH<Ld
U{x-iR-7̘]3P=7 Ӵ!%Gb02V. (}aN=P]jA@QS:t9OFo,,vz"l /v9gOGjh$UsegZ4HdavɈ+