sophuwu.site > otpp
removed load/save secret to file functions.
sophuwu sophie@sophuwu.site
Fri, 06 Oct 2023 09:12:20 +0200
commit

435d282e35ac834b146985d407cdfd746e4023c9

parent

d4dd0a6474cd6d2ddd7b35e429f16720bb777f5e

1 files changed, 0 insertions(+), 12 deletions(-)

jump to
M main.cppmain.cpp

@@ -24,18 +24,6 @@ | (strchr(base16, s[i*2+1]) - base16);

} } - void load(char* file) { - FILE* f = fopen(file, "r"); - fread(bytes, 1, 16, f); - fclose(f); - } - - void save(char* file) { - FILE* f = fopen(file, "w"); - fwrite(bytes, 1, 16, f); - fclose(f); - } - void generate() { std::srand(std::chrono::high_resolution_clock::now().time_since_epoch().count()); int r, i, j;