Skip to main content

Python script to calculate LPC firmware checksums

Project description

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).

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

Uploaded Source

Built Distribution

lpc_checksum-2.1.2-py2-none-any.whl (4.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: lpc_checksum-2.1.2.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for lpc_checksum-2.1.2.tar.gz
Algorithm Hash digest
SHA256 30a44685764b19ccde3d680f34117d66df2de2e2fc88f998507875863ec65ca6
MD5 2e82ebeff7e47b158d0c9c708e71b648
BLAKE2b-256 f9986bbf4f14db1886e963a68cf54830aea364f3af6955cc98fa8b0d8ad110e8

See more details on using hashes here.

File details

Details for the file lpc_checksum-2.1.2-py2-none-any.whl.

File metadata

  • Download URL: lpc_checksum-2.1.2-py2-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for lpc_checksum-2.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 7e8e8c915d46136a8bf475552065b3601720298b0514ea446d9be78ac05ea94f
MD5 f25ae7213a060ec0cbc4c53194d614c1
BLAKE2b-256 25071242d13a6fe5df75cb701535d4ca8f4e26a5bd16392a3c51e9a3f9c45f06

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