PHP

RSA Encryption & Decryption on PHP

Generate an RSA keypair with a 4096 bit private key Execute command: openssl genrsa -out private_key.pem 4096 e.g. $ openssl genrsa -out private_key.pem 4096 Generating RSA private key, 4096 bit long modulus .............................++++++ ................................................................++++++ e is 65537 (0x10001) Make sure…

Install Nginx and PHP-FPM on OS X

Install Nginx via Homebrew $ brew install nginx Adding Nginx to startup routine $ ln -sfv /usr/local/opt/nginx/*.plist /Library/LaunchDaemons/ $ sudo chown root:wheel /Library/LaunchDaemons/homebrew.mxcl.nginx.plist To Start $ launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist or $ sudo nginx To Stop $ launchctl unload -w…