From 6202eb83795142abeea9fe38ee5111672b866946 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 2 Nov 2023 01:03:57 -0500 Subject: base64 & uuencode --- src/crypto.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/crypto.h') diff --git a/src/crypto.h b/src/crypto.h index 27dca51..eff9ffe 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -4,6 +4,9 @@ #include "hash/sha01.h" #include "hash/sha2xx.h" +#include "encode/uuencode.h" +#include "encode/base64.h" + unsigned i_lr(unsigned, unsigned); unsigned i_rr(unsigned, unsigned); @@ -14,6 +17,13 @@ static const luaL_Reg crypto_function_list [] = { {"sha256",l_sha256}, {"sha224",l_sha224}, + {"uuencode",l_uuencode}, + {"uudecode",l_uudecode}, + + {"base64encode",l_base64encode}, + {"base64decode",l_base64decode}, + + {NULL,NULL} }; -- cgit v1.2.3