MD5.ComputeHash()
By the power of magic, the following will work:
function get_VB_hash($text) {
$hash = md5($text);
$hex = pack('H*', $hash);
// Pack as a hex string
$int_arr = unpack('C*', $hex);
// Unpack as unsigned chars
return $int_arr; }
or as one line:
unpack('C*', pack('H*', md5($text)) );
延伸閱讀
http://stackoverflow.com/questions/5544884/how-to-mimic-computehash-vb-function-in-php