Coder Social home page Coder Social logo

node-onlykey-fido2's Introduction

node-onlykey-fido2

http://onlykey.io/sea

requirments


  • node >= v12
  • libusb libudev

Developer Serial Monitor


This provides no help when debugging only key production.

Fido2 testing suite


This is a 3rd Party API for onlykey


Supports

  • NACL
  • ECDH and ECDSA (p256)
  • CURVE25519

API


var ok = onlykey(KEYTYPE , ENCRYPT_RESP);

KEYTYPE

  • KEYTYPE_NACL = 0
  • KEYTYPE_P256R1 = 1
  • KEYTYPE_P256K1 = 2
  • KEYTYPE_CURVE25519 = 3

ENCRYPT_RESP

  • OFF = 0
  • ON = 1

Methods

ok.connect(function() {})

connect sets onlykey time

Events

ok.on(event,function() {})

List of events

  • "status" outputs current operation in english
  • "error" emits any errors during operations
  • "debug" outpus any debug and status in english, like status but more details

ECDH

KEYTYPE_P256R1 = 1

After connect, 2 methods are added to ok

ok.derive_public_key(additional_d, function(error, jwk_epub) {})
ok.derive_shared_secret(additional_d, jwk_epub, function(error, shared_secret) {})
  • additional_d = string or buffer to point to a derived key
  • jwk_epub = public key in jwk format
  • shared_secret = shared AES-GCM key

API Authors

  • Tim ~ onlykey.io
  • Brad ~ bmatusiak.us

node-onlykey-fido2's People

Contributors

bmatusiak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.