Comments :
The tiny batch of red chars above it's nothing else than...
...the encrypted format of the green text you see below :
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.
|
|
|
These are the 4 interacting files :
|
1) encrypt.php
2) decrypt.php
3) iv.txt
4) string.txt
|
The scenario is that the file string.txt contains all your passwords and you are travelling without your Pc. You just need to remember the $key you have used to be able to surf to your site and decrypt the file string.txt
|