12 stable releases
3.1.7 | Jun 28, 2023 |
---|---|
3.0.4 | Jun 27, 2023 |
#425 in Cryptography
38 downloads per month
11KB
215 lines
kos
kos (Key, Offset, and Salt) is a quick encryption protocal that uses math to encrypt and decrypt.
whats new in lib?
(3.1.3) - minor bug fix
features
kos 3.0.0+ allows for the user to implement this protocal in their program. using lib is the vanilla experience. using kos includes a basic ui.
demo
Web demo here
example
use kosalt;
fn main() {
kosalt::gen();
kosalt::encrypt("This is super cool!");
let message = kosalt::decrypt();
println!("{message}");
}
Dependencies
~0.7–1.3MB
~26K SLoC