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](https://travis-ci.org/basilfx/lpc_checksum.svg?branch=master)](https://travis-ci.org/basilfx/lpc_checksum)

## 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.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

lpc_checksum-2.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lpc_checksum-2.1.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for lpc_checksum-2.1.0.tar.gz
Algorithm Hash digest
SHA256 85a802b6e5aeabf0654fb0ef893196492c89d8d817eb0efe4701a19d5d5f9aa0
MD5 7997b075beed4bcdd1422bc26c3dca58
BLAKE2b-256 e4b6fe47b0fd48f268006b8cbabe4d3cf208c3c4fcea5c30b52600b569a5a3d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lpc_checksum-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for lpc_checksum-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde3c04cdd70cb19ca040dca7408696141f225ad9a051ba30e11b6d9714118b2
MD5 f9493687f844d7f4dc800294d7dfd4d4
BLAKE2b-256 3b530da9df29c11afc9e58da675ed02dde7ab1d13f0d59f9250d0c4c4a054e48

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