aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.h
diff options
context:
space:
mode:
authorame <[email protected]>2023-11-02 01:03:57 -0500
committerame <[email protected]>2023-11-02 01:03:57 -0500
commitcbb317ce67d67eb0661a6ec805895ae4bf064c14 (patch)
tree45854f16bad360f459b769051536f972b2b75f77 /src/crypto.h
parent27c33caa85a3f61686ceae7bf555817d69df9c84 (diff)
base64 & uuencode
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h10
1 files changed, 10 insertions, 0 deletions
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}
};