Sovea / sm-crypto-plugin-spice-html5

sm-crypto-plugin (Node.js C++ addons) for spice-html5 to handle ticket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sm-crypto-plugin-spice-html5

This project is a simple sm-crypto plugin written using Node.js C++ Addons & sm2-EVP & express, created for the spice NTLS reconstruction project, especially for the for spice-html5-gm.

The main features of this project is to help spice-html5 to handle the Ticket when connecting to spice server. Include obtaining the pubKey from server, encrypt the password use SM2 and send to it with the required format.

How to use it:

# install modules
npm install

# install node-gyp
npm install -g node-gyp

node-gyp configure

# node-gyp build
node-gyp build

# start express service
node app.js

About

sm-crypto-plugin (Node.js C++ addons) for spice-html5 to handle ticket.


Languages

Language:JavaScript 57.9%Language:C++ 32.6%Language:Python 4.4%Language:Pug 3.6%Language:CSS 1.5%