sweecrypt

Crates.iosweecrypt
lib.rssweecrypt
version1.1.4
created_at2026-01-04 22:52:13.302759+00
updated_at2026-01-04 22:52:13.302759+00
descriptionA simple and fun cipher (Rust)
homepagehttps://swee.codes/apps/sweecrypt
repositoryhttps://git.swee.codes/swee/SweeCrypt-rs
max_upload_size
id2022691
size16,608
Nova Cat (Sweeistaken)

documentation

README

SweeCrypt-rs

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 Rust.

Install

CLI

$ cargo install sweecrypt

Help page:

$ sweecrypt --help
SweeCrypt-rs v1.1.4 - https://git.swee.codes/swee/SweeCrypt-rs
An easy and fun encryption module and app
Copyright 2024-2025 Swee
This software is licensed with MIT license

Usage: sweecrypt [encrypt|decrypt] (-s <n>) <msg>

Commands
    encrypt <str> Encodes a message
    decrypt <str> Decodes a message

Flags
    --help        Shows this message
    --shift <int> Specifies a database shift

Module

$ cargo add sweecrypt
[dependencies]
sweecrypt = "1.1.4"

Examples

Encrypt

using sweecrypt::encode;

fn main() {
    println!("{}", encode("hello, world!", 0));
}
$ sweecrypt encrypt "hello, world!"
!?~~(:,}(>~/a

Decrypt

using sweecrypt::decode; 

fn main() {
    println!("{}", decode("!?~~(:,}(>~/a", 0));       
}
$ sweecrypt decrypt '!?~~(:,}(>~/a'
hello, world!

Shifting DB

using sweecrypt::{decode,encode};

fn main() {
    let encoded = encode("hello, world!", 3);
    println!("{}", encoded);
    println!("{}", decode(encoded, 3)); // Correct output
    println!("{}", decode(encoded, 0)); // Wrong output
}
$ sweecrypt encrypt --shift 3 "hello, world"
\!((>ba_>](#
$ sweecrypt decrypt --shift 3 "\!((>ba_>](#"
hello, world

It will output a nonsense string if shifted incorrectly.

$ sweecrypt decrypt "\!((>ba_>](#"
khoor?!zruog
Commit count: 0

cargo fmt