6 releases

new 0.2.3 Nov 19, 2024
0.2.2 Nov 11, 2024
0.2.0 Oct 28, 2024
0.1.1 Oct 9, 2024

#873 in Parser implementations

Download history 330/week @ 2024-10-07 22/week @ 2024-10-14 141/week @ 2024-10-28 127/week @ 2024-11-04 130/week @ 2024-11-11

399 downloads per month

Apache-2.0 OR MIT

30KB
571 lines

Crates.io docs.rs Build

sfdl

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

License

Available under the Apache License (Version 2.0) or the MIT license, at your option.

Copyright 2024-present Mark Hähnel and Project Contributors. The present date is determined by the timestamp of the most recent commit in the repository. Project Contributors are all authors and committers of commits in the repository.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.6–3.5MB
~67K SLoC