yuzu/externals/cpp-jwt/include/jwt/test/test_hmac.cc

17 lines
310 B
C++
Raw Normal View History

2022-07-26 05:25:01 +04:00
#include <iostream>
#include "jwt/algorithm.hpp"
void basic_hmac_test()
{
jwt::string_view sv = "secret" ;
jwt::string_view d = "Some random data string";
auto res = jwt::HMACSign<jwt::algo::HS256>::sign(sv, d);
std::cout << res.first << std::endl;
}
int main() {
basic_hmac_test();
return 0;
}