sfdl

Crates.iosfdl
lib.rssfdl
version
sourcesrc
created_at2024-10-09 08:08:34.103752
updated_at2025-02-09 13:41:21.954212
descriptionParse, encrypt and decrypt SFDL container files
homepage
repositoryhttps://github.com/markhaehnel/sfdl.git
max_upload_size
id1402125
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Mark Hähnel (markhaehnel)

documentation

README

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.

Commit count: 34

cargo fmt