Skip to main content

DLMS CLI Tool for encrypt and decrypt APDU

Project description

Dlms encrypt-decrypt CLI

This simple tool allow you to easly encrypt or decrypt DLMS APDU

Installation

Use pip:

pip install setup.py

Usage

Encrypt

Example
System Title = 5249435249435249
Frame Counter = 80000001
Encryption Key = 454E4352595054494F4E4B45594B4559
Authentication Key = 41555448454E5449434154494F4E4B45
APDU = c001810001000060010aff0200

dlms_cli 5249435249435249 80000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 c001810001000060010aff0200

Result

Encrypted/Decrypted APDU: 0de63f2331a09aa85e8830f5f3
Authentication TAG: 610d47e1e24b14e8a022aefc6a43f3a3

Decrypt

Example
System Title = 5249435249435249
Frame Counter = 80000001
Encryption Key = 454E4352595054494F4E4B45594B4559
Authentication Key = 41555448454E5449434154494F4E4B45
APDU = 0de63f2331a09aa85e8830f5f3

dlms_cli 5249435249435249 80000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 0de63f2331a09aa85e8830f5f3

Result

Encrypted/Decrypted APDU: c001810001000060010aff0200
Authentication TAG: 977d4d21b7255a1b681fe6b1c902a7dc

Dependency

cryptography

License

MIT

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

dlms_cli-0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

dlms_cli-0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file dlms_cli-0.1.tar.gz.

File metadata

  • Download URL: dlms_cli-0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

File hashes

Hashes for dlms_cli-0.1.tar.gz
Algorithm Hash digest
SHA256 d50622de92c41d77b73aa6788a6c00b8864c04a92844cb1859d7854ee1ccda04
MD5 82e596c7a47b5eed5509f5f54b77db6c
BLAKE2b-256 8d0153472fdbf15955d437055101cd7478dc64014df2aa872d3137efb51c1af0

See more details on using hashes here.

File details

Details for the file dlms_cli-0.1-py3-none-any.whl.

File metadata

  • Download URL: dlms_cli-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

File hashes

Hashes for dlms_cli-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e77c57459c4554fe3199c5290c97e072825104aa586b21fc1ac4829fc0a13fb1
MD5 4ee846fab98f1d719e826546bf1a092f
BLAKE2b-256 9d3e4676b87863672088823fb49711bd1cbed556d6283c651113f27f7cba279d

See more details on using hashes here.

Supported by

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