Giter VIP home page Giter VIP logo

nitrokey-websmartcard-js's Introduction

Nitrokey Webcrypt Demo Application

This repository contains TypeScript implementation of the Nitrokey Webcrypt client, along with a Vue demo application using it, available at:

See following for more information:

Main screen image

Implemented Operations in the Demo Application

  • session management (Login and Logout)
  • key generation (random);
  • key generation from seed;
  • data signing using generated key (Sign tab);
  • custom calls for all commands from the API (Custom tab);
  • automatic test execution of the all commands from the API (TEST button).

Usage

  1. Press RESET AND LOGIN button to reset the device's state by calling a factory reset operation, set new PIN and establish a session.
  2. Generate key - either randomly or from a key seed, with GENERATE KEY or GENERATE KEY FROM SEED respectively.
  3. Sign data hash by pressing SIGN DATA button.
  4. End session by pressing LOGOUT

Note: all data are presented hexadecimal.

Custom Calls

Using Custom tab it is possible to send to device any API command. Default PIN set by RESET AND LOGIN is 123123, however one can run FACTORY_RESET command through the Custom tab, and set own and login with SET_PIN and LOGIN commands respectively.

For the fields marked as :bytes please enter data in hexadecimal format, and regular text for fields marked as :string.

Tests

The TEST button calls all API commands to check for the correctness of its implementation. These tests are not exhaustive (that is realized by the Python test suite), but mostly test "happy paths".

Nitrokey Webcrypt API Documentation

See Use Cases.

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve
yarn run vue-cli-service serve --https --open --host $(HOST) # for https

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

nitrokey-websmartcard-js's People

Contributors

szszszsz avatar

Watchers

 avatar  avatar  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.