- mb_convert_encoding: documentation ( source)
- hash: documentation ( source)
- base64_encode: documentation ( source)
<?php
$guid = '36a75830-be27-e111-a4dc-0050568b2fc3';
$secret = 'R3loadN3tcompanyIda';
$string = $secret . $guid;
$unicode = mb_convert_encoding($string, 'UTF-8');
$hash = hash('sha256', $unicode, TRUE);
$signature = base64_encode($hash);
print $hash;