Comments (5)
There shouldn't be easy to find the RSA spec to create a Node.js stoken implementation. But if you just need to add RSA capabilities to a Node app, you could instead:
- Look for an existing RSA package (https://www.npmjs.com/search?q=rsa)
- Implement a Node.js module in C++ based in
stoken
- Use
stoken
command line from a Node app wothchild_process
from stoken.
There shouldn't be easy to find the RSA spec to create a Node.js stoken implementation. But if you just need to add RSA capabilities to a Node app, you could instead:
- Look for an existing RSA package (https://www.npmjs.com/search?q=rsa)
- Implement a Node.js module in C++ based in
stoken
- Use
stoken
command line from a Node app wothchild_process
-
From my searching, there is no library in node that does what this does (or what stoken does).
-
I have tried using various tools but my lack of understanding of C++ does not allow for me to really take this approach. This also limits me to certain operating systems and I would like to make the library OS agnostic.
-
I would like to port the C++ version to nodeJS. Building a wrapper around the stoken command prompt limits it to a very small subset of operating systems.
If I can get a basic understanding of whats done with critical elements from in the below flow, I can implement this in a pure nodeJS Library.
- Token Import
- XML or otherwise
- Storage
- What fields are critical and are needed to generate new PINs?
- What fields can not be stored if export functionality is not desired, ect?
- PIN Generation
- What algorithms are used in combination with the user supplied PIN to generate a token
- What timestamp is used?
- EPOCH, Local, ect.
from stoken.
@ChrisKader : I am looking for same things as you (a node.js port and possible documentation).
Node.js modules already implement many cryptographic functions like pbkdf2, hmac, ... so task should be easier than it looks.
EDIT : there is .NET port of this library called ursa. This is probably easier to read than C.
from stoken.
@tigrouind thank you! You are right, it is a lot easier to understand!
from stoken.
@ChrisKader : I am looking for same things as you (a node.js port and possible documentation).
Node.js modules already implement many cryptographic functions like pbkdf2, hmac, ... so task should be easier than it looks.EDIT : there is .NET port of this library called ursa. This is probably easier to read than C.
I was able to successfully get this going on nodeJS my using the URSA project along with the original stoken library.
I am hoping I can get the stokenjs name on NPM as mine is an actual hand coded port with all functionality versus a "WASM" compiled version.
from stoken.
Related Issues (20)
- Ability to copy both current and next tokencode HOT 5
- Can a SID700 hardware token behavior be emulated? HOT 2
- SetPin nor pin in stoken.rc allow alphanumeric pin.
- How can I create a new batch certificate ? HOT 1
- Documentation Update - Next Tokencode CLI HOT 1
- Respect XDG base directories
- iPhone token - Device ID mismatch HOT 3
- RFE: port to openssl crypto
- Arduino Due support HOT 3
- UI issue on MacOS Monterrey
- Add configurable timeout for re-entry of PIN
- Keyboard shortcuts don't close application
- Is this project still in development? HOT 2
- 'mlockall' error HOT 1
- error: --token string is garbled: General failure HOT 1
- How do you remove a stored token? HOT 1
- RFE: please start making github releases HOT 2
- Why do you need stoken-gui-small.desktop
- stoken 0.93 tarball HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stoken.