# lora-decrypt

> container for parsing Actility/Thingpark FRMpayloads

Latest version **1.0.1** (published 2016-11-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install lora-decrypt
pnpm add lora-decrypt
yarn add lora-decrypt
bun add lora-decrypt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-11-05 |
| First published | 2016-11-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mkamka |
| Maintainers | mkamka |
| Keywords | lora, actility, thingpark, IOT |

## Links

- npm: https://www.npmjs.com/package/lora-decrypt
- Repository: https://github.com/mkamka/lora_decrypt
- Homepage: https://github.com/mkamka/lora_decrypt#readme
- Issues: https://github.com/mkamka/lora_decrypt/issues
- npm.io page: https://npm.io/package/lora-decrypt

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-11-05
- 1.0.0 — 2016-11-05

## README

# Lora-decrypt

Node container for decrypting LoRaWan payloads (FRMpayload) from Thingpark/Actility platform.

- Depends on [aes-js]
- Based on encrypt/decrypt code in [Lora-net/LoRaMac-node]


## Usage

`npm install lora-decrypt`


```javascript
> lora = require('lora-decrypt');
> payload_hex = '11daf7a44d5e2bbe557176e9e6c8da';
> sequence_counter = 2;
> key = 'AABBCCDDEEFFAABBCCDDEEFFAABBCCDD';
> addr = '00112233';
> lora.lora_decrypt(payload_hex, sequence_counter, key, addr);
[222, 59, 24, 8, 7, 155, 237, 158, 103, 125, 93, 34, 161, 204, 33]
```
Returns Uint8Array

[aes-js]: https://www.npmjs.com/package/aes-js
[Lora-net/LoRaMac-node]: https://github.com/Lora-net/LoRaMac-node/blob/master/src/mac/LoRaMacCrypto.c#L108

---
_Source: https://npm.io/package/lora-decrypt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
