OSX: Nginx for laravel

Why not using homestead? I think it’s (in some cases) a bit of overkill… Installing a virtual machine adds overhead in terms of disk space and run time. Install nginx One of the easierst ways is to use homebrew: brew install nginx For php I used: brew install -v --with-fpm php56 Configuration Homebrew puts the config into /usr/local/etc/nginx/nginx.conf. I modified it a bit to support laravel and rewrites the routes. You will have to update the http....

May 3, 2016 · 1 min · Christian Hotz-Behofsits

How to Install Java Bouncy Castle Security Provider

Bouncy Castle provides a lot of different security algorithms, but the usage is not well documented, so I will explain the basic steps to use it. First download library and then move it to your $JAVA_HOME path: wget https://www.bouncycastle.org/download/bcprov-jdk15on-154.jar sudo mv ~/Downloads/bcprov-jdk15on-154.jar $JAVA_HOME/jre/lib/ext There are two option to use it: Option 1: static Installation Now add the following line to your $JAVA_HOME/jre/lib/security/java.security: security.provider.N=org.bouncycastle.jce.provider.BouncyCastleProvider Option 2: dynamic usage You have to import the bouncy castle package and the security class and load the provider right before the usage (e....

January 25, 2016 · 1 min · Christian Hotz-Behofsits

Crack unsafe RSA Encryption

I had to decrypt a weak RSA encrypted message. Why weak? Because a (only) 268-bit key was used for encryption. So RSA is not bad, but please use a suitable key size. For this blog post it’s not important, why RSA is secure and works, it’s just a tutorial how to calculate a private key if it get’s lost (will just work for unsecure keys indeed) or to demonstrate that small key sizes are unsecure....

December 24, 2015 · 3 min · Christian Hotz-Behofsits

How To: Install USB card reader

I had to use a USB CardReader (Omnikey 5421) in a course. This device will not work out of the box (at least not in Ubuntu 15.10 64-bit) so you will have to do some magic described in this post… OS-Selection: I will use a plain-vanilla Ubuntu 15.10 64-bit as guest OS, but this should work on every Debian based Linux-Distribution (proviging apt-get support and a half-decent actual package repository). For other Linux distros you will have to use another package manager (e....

November 29, 2015 · 3 min · Christian Hotz-Behofsits