key
XuAPI
pub fn key(password &string, salt &string, iter int, key_len int) stringPurpose
key derives a cryptographic key of key_len bytes from password and salt across iter rounds. Throws on failure; handle the error or propagate it to the caller.
Parameters
password&string- password (read-only borrow; caller keeps the original; type &string)
salt&string- salt (read-only borrow; caller keeps the original; type &string)
iterint- iter (int)
key_lenint- key_len (int)
Returns
string — result string