4 releases (2 breaking)

Uses old Rust 2015

0.2.1 Jun 3, 2018
0.2.0 Mar 26, 2018
0.1.0 Nov 23, 2017
0.0.1 Feb 6, 2016

#2 in #dlc

MIT license

15KB
217 lines

dlc-decrypter

A simple library to decode dlc files to a readable format.

Usage

Add dlc_decrypter as a dependency in Cargo.toml:

[dependencies]
dlc-decrypter = "0.2.1"

Use the `dlc_decrypter::DlcDecoder' to decrypt a .dlc file or datapackage:

extern crate dlc_decrypter;

fn main() {
    // Create the DlcDecoder
    let dd = dlc_decrypter::DlcDecoder::new();

    // loop over all arguments for the programm
    // skip the first one because it's the programm
    // own name
    for arg in std::env::args().skip(1) {
        // hand over the file path
        let dlc = dd.from_file(arg);

        // print the result
        println!("DLC: {:?}", dlc);
    }
}

Thanks

License

Distributed under the MIT License.


lib.rs:

A simple library to decode dlc files to a readable format.

Usage

Add dlc_decrypter as a dependency in Cargo.toml:

[dependencies]
dlc-decrypter = "0.2.0"

Use the dlc_decrypter::DlcDecoder to decrypt a .dlc file or datapackage:

extern crate dlc_decrypter;

fn main() {
    // Create the DlcDecoder
    let dd = dlc_decrypter::DlcDecoder::new();

    // loop over all arguments for the programm
    // skip the first one because it's the programm
    // own name
    for arg in std::env::args().skip(1) {
        // hand over the file path
        let dlc = dd.from_file(arg);

        // print the result
        println!("DLC: {:?}", dlc);
    }
}

Thanks

License

Distributed under the MIT License.

Dependencies

~21–33MB
~570K SLoC