wormhole/test/rsa_gen_test.cpp
nekobit 8d3bbc2cfd Generate key + to string
FossilOrigin-Name: 871567e5c80409880560aef11aa767e6c1378bb5cbdd9158a7d8d2d68b01d325
2022-10-18 04:21:36 +00:00

15 lines
220 B
C++

#include <cassert>
#include <iostream>
#include "crypt/rsa.h"
using namespace Crypt;
int main()
{
RsaFactory factory{};
Rsa key = factory.generate_key();
std::cout << key.to_string();
return 0;
}