Function kripher::decode
[−]
[src]
pub fn decode(numbers: Vec<u64>, key: u64) -> String
Decodes a vector of numbers (u64
) into a String
.
Usually you want to use this function with the output of the
kripher::encode
function, because there is no other easy way to
calculate values that will work.
Examples
use kripher::decode; let numbers = vec![3722940, 3832452, 3941964]; let decoded = decode(numbers, 234); assert_eq!(decoded, "ABC".to_string());