A port of the security class from Codeigniter 2.1 for Laravel 4.1