Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lora Join accept giving error in Crypt JS #39

Open
mihirgraspberry opened this issue Aug 18, 2020 · 0 comments
Open

Lora Join accept giving error in Crypt JS #39

mihirgraspberry opened this issue Aug 18, 2020 · 0 comments

Comments

@mihirgraspberry
Copy link

When I try to decrypt join accept message, it is giving error in crypto.js Line 131

var packet = lora_packet.fromWire(new Buffer('20425f1c2efd7e1079e704298cfec4814be1f18c6c8b9babd632ea2dfc3eb6242b', 'hex'));

appKey = new Buffer("2b7e151628aed2a6abf7158809cf4f3c", 'hex');

console.log("packet.toString()=\n" + packet);
var DecryptedPacket = lora_packet.decryptJoinAccept(packet, appKey);

console.log("packet.toString()=\n" + DecryptedPacket);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant