rbuenger said:Yes, this is possible with OpenSSL in a very simple way like:
openssl des -e -aes128 -k mypass -in Inputfile -out cryptedfile
-e means encryption. Try -d to decrypt
-k is the key
-in and -out the files to handle
Hope this helps and is what you are searching. If you don't wanne use aes128 you can choose many other cipher types like rc5, des, blowfish....
You can see a help for this command by just entereing an invalid option like:
openssl des -invalid
rbuenger said:First if your webserver is running on a *nix box you could easily create simple shell-scripts and call them like any cgi from within you page. You just have to start your file with #!/bin/bash instead of the pearl stuff. Maybe this works for you.
And it should be no problem to use a simple openssl md5 command to create a checksum of the encoded text you got bevor like this:
openssl des -e -aes128 -k password -in filetoencode | openssl md5
But using this with md5 you're unable to decode it in any way because md5 is a one way function. So you instead have to encode the input and compare the md5 hashes.