Thoughts of just about anything
Posts tagged PHP
Write OpenSSL files in PHP
Mar 16th
A while back I wrote a post on how to Read OpenSSL files in PHP, and a reader asked how would you write a file.
Well I thought that’s easy you just do the same thing but use the encrypt function. Well I should have known better. Two hours later and a whole lot of research yield that PHP doesn’t do PKCS#5 padding when using PHP’s mcrypt API. But luckly duerra had a simple solution. So after padding my input everything worked fine. More >
New Symfony Color Scheme for Vim
Apr 4th
Recently I’ve been doing a lot of PHP programing using symfony application framework. I think it is one of the best PHP frameworks out there. Not to mention that the community is always willing to help, and they have really good documentation. Something lacking in other frameworks I’ve used in the past. More >
Read OpenSSL files in PHP
Apr 18th
I finally got PHP to open encrypted files created with OpenSSL. I use openssl in the command line to encrypt files with AES cipher 128 block size and 256 key length with salt. More >