1 2 3 4 5 6 7 8 9 10 11
use sfdl::sfdl::SfdlFile; fn main() { let mut sfdl = SfdlFile::from_file("examples/encrypted.sfdl").unwrap(); sfdl.decrypt("S3cr3tP4ssw0rd!").unwrap(); println!("{:#?}", sfdl); sfdl.write("decrypted.sfdl").unwrap(); }