MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / decrypt

Function decrypt

src/ciphers/rsa_cipher.rs:218–220  ·  view source on GitHub ↗

Decrypts a ciphertext using the RSA private key # Arguments `ciphertext` - The encrypted message `private_key` - The private key to use for decryption # Returns The decrypted plaintext message # Examples ``` use the_algorithms_rust::ciphers::{generate_keypair, encrypt, decrypt}; let (public_key, private_key) = generate_keypair(61, 53); let message = 65; let ciphertext = encrypt(message, &pu

(ciphertext: u64, private_key: &PrivateKey)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

decrypt_textFunction · 0.70
test_different_primesFunction · 0.70

Calls 1

mod_powFunction · 0.85

Tested by 3

test_different_primesFunction · 0.56