[][src]Function savefile::save_encrypted_file

pub fn save_encrypted_file<T: WithSchema + Serialize>(
    filepath: &str,
    version: u32,
    data: &T,
    password: &str
) -> Result<(), SavefileError>

Like crate::save_file, except encrypts the data with AES256, using the SHA256 hash of the password as key.