From bfb5a9ad837e8985aa66acb8a9d6e6790488dcd4 Mon Sep 17 00:00:00 2001 From: thing1 Date: Mon, 30 Jun 2025 07:54:25 +0100 Subject: init commit, should remake send --- send/users.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 send/users.c (limited to 'send/users.c') diff --git a/send/users.c b/send/users.c new file mode 100644 index 0000000..7b161f9 --- /dev/null +++ b/send/users.c @@ -0,0 +1,13 @@ +#include +#include +#include + +#include "util.h" + +char * +make_userid(char *nick, char *pass) { + char *prehash, *hash; + int len = asprintf(&prehash, "%s:%s", nick, pass); + hash = SHA1(prehash, len, NULL); + return hash; +} -- cgit v1.2.3