Refactor PHPSECLIB Crypto
Add test function - basic testing (will be replaced by real test suit)