Function savefile::save_encrypted_file [−][src]
pub fn save_encrypted_file<T: WithSchema + Serialize>(
filepath: &str,
version: u32,
data: &T,
password: &str
) -> Result<(), SavefileError>
Expand description
Like crate::save_file, except encrypts the data with AES256, using the SHA256 hash of the password as key.