A simple and fun cipher (Lua)
- Lua 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| sweecrypt.lua | ||
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