Some Needed Functions
Some Needed Functions
Follows from my post here:
https://help.zoho.com/portal/en/community/topic/cryptography-function
If we had these functions (from PHP), much would be possible
URL encode a string:
rawurlencode($var)
see:
http://us3.php.net/manual/en/function.rawurlencode.php
Decode a url string:
rawurldecode($var)
see:
http://us3.php.net/manual/en/function.rawurldecode.php
Convert a string to base 64:
base64_encode($var)
see:
http://us3.php.net/manual/en/function.base64-encode.php
Decode a string from 64:
base64_decode($var)
see:
http://us3.php.net/manual/en/function.base64-decode.php
Make a hash string:
hash_hmac('sha256', $var, $key, true)
see:
http://php.net/manual/en/function.hash-hmac.php
John M. Whitney