Skip to content
Snippets Groups Projects
Commit 5b22656b authored by Olavi AIKAS's avatar Olavi AIKAS
Browse files

Update main

parent c0d21c2e
No related branches found
No related tags found
No related merge requests found
......@@ -20,13 +20,13 @@ fn main() {
y = astarzstar::rand_astar(&n);
}
//Now (n, y) is the public key
let message: Vec<bool> = vec![true, true, false, false, true];
let message: Vec<bool> = vec![true, true, false, false, true, false, false, true, false, true];
let cipher = crypto_system::encrypt(&message, &n, &y);
for i in 0..5 {
for i in 0..message.len() {
println!("{}", cipher[i]);
}
let decrypted_message = crypto_system::decrypt(&cipher, &p1, &p2);
for i in 0..5 {
for i in 0..decrypted_message.len() {
println!("{}", decrypted_message[i]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment