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
commit6202eb83795142abeea9fe38ee5111672b866946 (patch)
tree45854f16bad360f459b769051536f972b2b75f77 /src/crypto.h
parentdeacfd0e3ca66c3dd29cf4ff6fdaedcc184d101f (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}
};