- urlencode: documentation ( source)
- base64_encode: documentation ( source)
- json_encode: documentation ( source)
- strtolower: documentation ( source)
- md5: documentation ( source)
<?php
//Enter your code here, enjoy!
$array = array("nonce" => "1512266912",
"req" => json_encode(array('Currency'=> "")),
"base64" => base64_encode(md5(json_encode(array('Currency'=> "")), true)),
"url0" => "https://www.cryptopia.co.nz/Api/GetBalance",
"url1" => strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")),
"pk" => "3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo",
"sign" => "13c55a9a358947d481e2788dc294486b" . "POST" . strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")) . "1512266912" . base64_encode(md5(json_encode(array('Currency'=> "")), true))
);
foreach( $array as $key => $value ){
echo $key."\t=>\t".$value."\n";
}