Skip to main content

Python script to calculate LPC firmware checksums

Project description

Python script to calculate LPC firmware checksums, based on the C version by Roel Verdult. It can be used as a stand alone application, or as a Python module to integrate it directly in a build environment (e.g. SCons). It does not require to be compiled.

Requirements

The only requirement is Python 2.7.

Installation

This module can be installed from Pypi via pip install lpc_checksum. Alternatively, you can install the latest version by cloning this repository and run python setup.py install.

Usage

There are two ways of using lpc_checksum.

Stand alone

When installed via Pip or from source, the command lpc_checksum should be available on your PATH.

lpc_checksum <firmware.bin> [--readonly]

Program exits with a non-zero error code when it failed.

As a module

import lpc_checksum
checksum = lpc_checksum.checksum(input_file, [readonly=True])

On error, an exception will be raised.

License

See the LICENSE file (MIT license).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lpc_checksum-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file lpc_checksum-1.1.0.tar.gz.

File metadata

  • Download URL: lpc_checksum-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lpc_checksum-1.1.0.tar.gz
Algorithm Hash digest
SHA256 05112a7a01e9262dccf91feab3e14df43e2e01883c1d72fbeb67c441e30aa11c
MD5 b632b8170902fa8df098b8b2d1e2bb6a
BLAKE2b-256 06f959db9205dbd341b5ec6bba6164771db1e84a483dd84c9baeefefdb4d6ac8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page