encrypted-images/examples/encrypt_secure.rs

10 lines
313 B
Rust
Raw Normal View History

2024-07-16 23:40:41 +00:00
use encrypted_images::encryption::text::encrypts;
fn main() {
let plaintext = "This Is Plain Text";
let key = Some("16characterslong");
let strength = Some("advanced");
let encrypted_text = encrypts(plaintext, key, strength).unwrap();
println!("Encrypted text: {}", encrypted_text);
}