/** * Create a key for the account ID or video ID to prevent third party from sending * spoofed callback requests. * @param $video_id * @return string containing hash */ public static function get_auth_key_for_id($video_id) { $hash = hash('sha256', BC_Utility::salt() . $video_id); return substr($hash, 0, 8); }