Skip to content

Commit 86a2585

Browse files
committed
chore: add how to use on main
1 parent 2ab5179 commit 86a2585

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
use cipher_blend::{decrypt, encrypt};
2+
13
fn main() {
2-
println!("Cipher Blend");
4+
let original_message = "Hello, Rust!";
5+
let shift = 3;
6+
7+
// Encrypt
8+
let encrypted_message = encrypt(original_message, shift);
9+
println!("Encrypted: {}", encrypted_message);
10+
11+
// Decrypt
12+
let decrypted_message = decrypt(&encrypted_message, shift);
13+
println!("Decrypted: {}", decrypted_message);
314
}

0 commit comments

Comments
 (0)