A simple and fun cipher (Lua)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-19 21:35:20 -07:00
.gitignore Initial commit 2026-04-08 21:06:52 -07:00
LICENSE Initial commit 2026-04-08 21:06:52 -07:00
README.md i won't make cli for this one for now 2026-05-19 21:35:20 -07:00
sweecrypt.lua i won't make cli for this one for now 2026-05-19 21:35:20 -07:00

SweeCrypt-lua

A basic and fun cipher module for everyone. It converts regular text into symbols on a keyboard, kind of like a cipher. This is only for fun, using this module for cybersecurity is NOT ADVISED

This is a port of SweeCrypt-py to Lua, only including the library part.

Examples

Encrypt

sweecrypt = require("sweecrypt")

print(sweecrypt.encrypt("hello, world!"))

Decrypt

sweecrypt = require("sweecrypt")

print(sweecrypt.decrypt("!?~~(:,}(>~/a"))

Shifting DB

sweecrypt = require("sweecrypt")

encoded = sweecrypt.encrypt("hello, world!", 3)
print(encoded)
print(sweecrypt.decrypt(encoded, 3)) -- Correct output
print(sweecrypt.decrypt(encoded)) -- Wrong output