Skip to main content

lpc_checksum

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

Build Status

Requirements

The only requirement is Python 2.7 or Python 3.5+.

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.

Standalone

When installed via Pip or from source, the command lpc_checksum should be available on your PATH. By default, it assumes the input file is a binary file.

lpc_checksum <firmware.bin|hex> [--format=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).

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-2.2.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lpc_checksum-2.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lpc_checksum-2.2.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3

File hashes

Hashes for lpc_checksum-2.2.0.tar.gz
Algorithm Hash digest
SHA256 1f2fb198483cc718141f1aa0ed4717fd188e29874d7db0409d1ed04358b64185
MD5 eef81888414a111e1fd5992b8614b6cb
BLAKE2b-256 61317336510f64799e22562b5fce3f33f452df9a9ec9b37de2184ff6879aad33

See more details on using hashes here.

File details

Details for the file lpc_checksum-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: lpc_checksum-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3

File hashes

Hashes for lpc_checksum-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e226511d42b18018c706b6e27ce0f56fab82ab0a19225e5fe1c64b2fbe620b12
MD5 8b014e88421f6599c9f5c09820c444f7
BLAKE2b-256 92ea55fe6540369d1ee999f0a8647a04692e003fdf9330dd6b4ee076a4a8bb3d

See more details on using hashes here.

Supported by

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