<% # 使用动态的 user identifier,生成对应的 hash user_id = '123' user_hash = OpenSSL::HMAC.hexdigest( 'sha256', @web_widget.hmac_token, user_id.to_s ) %>