Skip to content

Instantly share code, notes, and snippets.

@z3bra
z3bra / argon2id.c
Last active October 21, 2022 14:44
Libsodium Argon2 parallelism
/*
* cc argon2id.c -lsodium -o argon2id
*
* printf "password" | argon2id -s salt -m mem -t time -p thread > file.key
*/
#include <string.h>
#include <unistd.h>
#include <sodium.h>