1.0.0 • Published 7 years ago

activate-server v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

activate-server

activate-server is the part of activate module, which use as the server to send 2d code to the phone user. Use with the activate-client; The activate-server which verifying the client auth and generating an code to the user. Operation step: Use the client part ,then you get a string(for 2d-code),verification code,/activate-code/test/2DCode.svg, /activate-code/test/2wmTest.html, open the 2wmTest.html and scan the svg with phone, you can get an verification code which can be compared with previous verification code. activate-code uses ecdh to crypte the input args. So, the output strings are different every time. The input arguments will be crypted with aes-128 method. The verifying string are generated within jenkinsHash32 which has low collision. However, the activate-client are used together with the http part which can send verifying string to requesting user. And also, communicate its public ecdh key with the server part. activate-server uses ecdh to crypte the input args. So, the output strings are different every time. The input arguments will be crypted with aes-128 method. The verifying string are generated within jenkinsHash32 which has low collision. However, the activate-client are used together with the http part which can send verifying
string to requesting user. And also, communicate its public ecdh key with the server part.

Installation

npm install activate-server

Usage

cd /node_modules/activate-server

node activate-server

If you think it usefull, please click the star