Zymkey
Nodejs wrapper of zymkey crypto library.
Install / Use
/learn @Oaken-Innovations/ZymkeyREADME
Zymkey NodeJS Library
A NodeJS wrapper for zymkey crypto library.
Caution: This repo is deprecated and not catching up with the hardware development of zymkey.
Installation
npm install zymkey --save
Usage
var client = require('zymkey');
var ret = client.ledOff();
console.log('Zymkey ledOff returned ' + ret);
var srcBuf = new Buffer('hello, world');
lockedBuf = client.lock(srcBuf);
console.log('Locked data: \n\t' + lockedBuf.toString());
unlockedBuf = client.unlock(lockedBuf);
console.log('Unlocked data: ');
console.log('\t' + unlockedBuf.toString('utf-8'));
console.log('Buffer equals ' + srcBuf.equals(unlockedBuf));
Examples
Take a look at the examples under examples/ folder.
Tests
All the test are under test/. And run test script by
npm test
Supported Zymkey Features
- [X] Manipulation (on/off/flash) of onboard LED.
- [X] ECDSA (P256 curve only) operations (getECDSAPubKey/sign/verify)
- [X] Data encrypt/decrypt using Zymkey private key.
- [X] Generate random bytes using Zymkey's True Random Number Generator (TRNG).
- [X] Access to Zymkey's Real Time Clock (RTC).
- [X] Access to Zymkey's Tap Detection Sensor.
- [X] Set Zymkey's I2C address.
Release History
0.1.0Inital Release (01/04/2017)
Acknowledgement
This project is based on Zymbit's trusted hardware modules.
Thanks to Zymbit's amazing technical supports and great product!
And credits are given to the node-ffi and ref
that enable calling Zymkey's C library in nodejs.
License
GPL-3.0
Copyright
Lex && Oaken Team
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
