{"id":27370702,"url":"https://github.com/ric-geek/dlms-encrypt-decrypt-cli","last_synced_at":"2025-08-09T02:05:59.661Z","repository":{"id":39630386,"uuid":"272268518","full_name":"ric-geek/dlms-encrypt-decrypt-cli","owner":"ric-geek","description":"Simple CLI for decrypting and encripting DLMS APDU","archived":false,"fork":false,"pushed_at":"2025-04-11T18:56:36.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:19:21.252Z","etag":null,"topics":["cli","cosem","dlms","encryption-decryption","gas-meter","python3","smart-metering","smartmeter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ric-geek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-14T19:21:18.000Z","updated_at":"2025-04-11T17:54:08.000Z","dependencies_parsed_at":"2025-04-13T09:19:16.926Z","dependency_job_id":null,"html_url":"https://github.com/ric-geek/dlms-encrypt-decrypt-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ric-geek/dlms-encrypt-decrypt-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ric-geek%2Fdlms-encrypt-decrypt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ric-geek%2Fdlms-encrypt-decrypt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ric-geek%2Fdlms-encrypt-decrypt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ric-geek%2Fdlms-encrypt-decrypt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ric-geek","download_url":"https://codeload.github.com/ric-geek/dlms-encrypt-decrypt-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ric-geek%2Fdlms-encrypt-decrypt-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269518731,"owners_count":24430644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cosem","dlms","encryption-decryption","gas-meter","python3","smart-metering","smartmeter"],"created_at":"2025-04-13T09:19:07.488Z","updated_at":"2025-08-09T02:05:59.486Z","avatar_url":"https://github.com/ric-geek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dlms encrypt-decrypt command line tool\nWith this tool you can perform these operation:\n- Generate encrypted APDU\n- Decrypt APDU\n- Authenticate APDU\n- Generate encryption key\n\n## Installation\nUse pip:\n```\npip install setup.py\n```\nUse pypi:\n```\npip install dlms-cli\n```\n## Usage\n### Encrypt\n**Example**\\\nSystem Title = 5249435249435249\\\nFrame Counter = 80000001\\\nEncryption Key = 454E4352595054494F4E4B45594B4559\\\nAuthentication Key = 41555448454E5449434154494F4E4B45\\\nAPDU = c001810001000060010aff0200\n```\ndlms_cli -e 5249435249435249 80000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 c001810001000060010aff0200\n```\nResult\n```\nEncrypted/Decrypted APDU: 0de63f2331a09aa85e8830f5f3\nAuthentication TAG: 610d47e1e24b14e8a022aefc6a43f3a3\n```\n### Decrypt\n**Example**\\\nSystem Title = 5249435249435249\\\nFrame Counter = 80000001\\\nEncryption Key = 454E4352595054494F4E4B45594B4559\\\nAuthentication Key = 41555448454E5449434154494F4E4B45\\\nAPDU = 0de63f2331a09aa85e8830f5f3\n```\ndlms_cli -d 5249435249435249 80000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 0de63f2331a09aa85e8830f5f3\n```\nResult\n```\nEncrypted/Decrypted APDU: c001810001000060010aff0200\nAuthentication TAG: 977d4d21b7255a1b681fe6b1c902a7dc\n```\n\n### Generate authenticated data\n**Example**\\\nSystem Title = 5249435249435249\\\nFrame Counter = 00000001\\\nEncryption Key = 454E4352595054494F4E4B45594B4559\\\nAuthentication Key = 41555448454E5449434154494F4E4B45\\\nAPDU = 0de63f2331a09aa85e8830f5f3\n```\ndlms_cli -a 5249435249435249 00000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 0de63f2331a09aa85e8830f5f3\n```\nResult\n```\nTAG: 62d423292e0fe5320370881d\n```\n\n### Generate encryption key\n**Example**\n\n```\ndlms_cli -k\n```\nResult\n```\nEncryption Key: 08f418ad55d89f38388a7e379b16353f\n```\n\n### Generate encryption key and store it in a txt ile\n**Example**\n\n```\ndlms_cli --onfile \"path_where_you_want_save_file\\file_name.txt\n```\n\n### How to use with the executable\n**Example**\n```\ndlms_cli.exe -e 5249435249435249 80000001 454E4352595054494F4E4B45594B4559 41555448454E5449434154494F4E4B45 c001810001000060010aff0200\n```\n\n## Dependency\n[cryptography](https://github.com/pyca/cryptography)\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fric-geek%2Fdlms-encrypt-decrypt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fric-geek%2Fdlms-encrypt-decrypt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fric-geek%2Fdlms-encrypt-decrypt-cli/lists"}