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

Function trifid_encrypt

src/ciphers/trifid.rs:26–48  ·  view source on GitHub ↗

Encrypts a message using the Trifid cipher. # Arguments `message` - The message to encrypt `alphabet` - The characters to be used for the cipher (must be 27 characters) `period` - The number of characters in a group whilst encrypting

(message: &str, alphabet: &str, period: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

test_encrypt_basicFunction · 0.85
test_encrypt_emptyFunction · 0.85

Calls 5

prepareFunction · 0.85
encrypt_partFunction · 0.85
pushMethod · 0.80
iterMethod · 0.45
getMethod · 0.45

Tested by 6

test_encrypt_basicFunction · 0.68
test_encrypt_emptyFunction · 0.68