Cleaned `classes\encryption.class.php`

Fixed encryption from returning empty string when `0` is passed;
Moved hex encode / decode functions into their own class;