class Crypto { static function sign($data, $secret) { return hash_hmac('sha256', json_encode($data), $secret); } }