Crate sfdl

Source
Expand description

A rust crate for parsing, encrypting and decrypting SFDL container files.

§Example

// Reading a SFDL file from a file
let mut sfdl = SfdlFile::from_file("examples/decrypted.sfdl").unwrap();

// Encrypting the SFDL file
sfdl.encrypt("password").unwrap();

// Writing the encrypted SFDL file back to a file
sfdl.write("encrypted.sfdl").unwrap();

// Decrypting the SFDL file
sfdl.decrypt("password").unwrap();

// Writing the decrypted SFDL file back to a file
sfdl.write("decrypted.sfdl").unwrap();

For detailed information consult the docs.

§References

Modules§

crypto
Cryptographic functions for decrypting and encrypting SFDL files.
error
Error types for io, parsing, encrypting and decrypting SFDL files
sfdl
SFDL file format parser and writer