Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpb06/rsa-vault
Generating, storing and providing rsa keys for others apps
https://github.com/jpb06/rsa-vault
data-access-layer mongoose rsa-cryptography typegoose typescript
Last synced: 6 days ago
JSON representation
Generating, storing and providing rsa keys for others apps
- Host: GitHub
- URL: https://github.com/jpb06/rsa-vault
- Owner: jpb06
- Created: 2018-09-25T15:52:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T17:26:10.000Z (over 2 years ago)
- Last Synced: 2023-03-04T00:37:02.141Z (over 1 year ago)
- Topics: data-access-layer, mongoose, rsa-cryptography, typegoose, typescript
- Language: TypeScript
- Homepage:
- Size: 878 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rsa-vault
A little library meant to generate, store and provide rsa keys.
## Purpose
The app is built to serve as a repository for rsa keypairs.
The respository can hold an arbitrary amount of keypairs, each defined by an identifier defining the application the keypair is defined for. The keypairs have a lifetime of 15 days.
I made this to act as an unified cryptographic provider for projects running on the same local server. Main intent is to use JSON Web Token (JWT) without having to rely on external providers.## Environment / Dependencies
- Targeted for node.js, using Typescript superset for coding.
- Persitence relying on mongodb.
- DAL built on top mongoose & Typegoose.
- node-rsa for crypto.
- jest for tests.## Tests
Using jest
npm t
npx jest
npx jest --watch## Version history
* 0.0.1 : Crypto service to serve/generate keypairs.
* 0.0.2 : Moving to gulp 4.0.0.
* 0.0.3 : Using new mongodb url parser.
* 0.0.4 : It's really time to put up some proper testing scheme.. (removing live tests from the index file).
* 0.0.5 : Adding mongodb basic authentication support.
* 0.0.6 : Adding caching to limit db calls. End object now returns the previously generated public key, to let the consumer verify messages signed with the previous key.
* 0.0.7 : Simplifying DB setup, expecting an interface as input.
* 0.0.8 : Fixing the issue with multiple connections.
* 0.0.9 : Properly closing the connection once we're done this time..s.
* 0.1.0 : Adding sasslprep and adding some tests using jest.
* 0.1.1 : Fixing package description.
* 0.1.2 : Updating dependencies (mainly mongoose).