Comments (3)
@javisantos it’s important to use a performing, reputable, recognized crypto implementations.
Ideally, this missing cipher will be added to openssl and therefore also node’s crypto module. Since that’s not the case (yet), libsodium is the second best thing.
from paseto.
Furthermore, testing the bundle size of your fork it's actually higher and has more module dependencies. The crypto implementations of stablelib are pure javascript, as opposed to libsodium's native modules, ergo its slower as well, albeit sometimes within a margin of error.
❯ du -hs pasetowithstablelib
1.6M pasetowithstablelib
❯ du -hs paseto
1.1M paseto
libsodium V2.encrypt x 10,261 ops/sec ±3.53% (74 runs sampled)
stablelib V2.encrypt x 9,704 ops/sec ±3.11% (78 runs sampled)
libsodium V2.decrypt x 15,632 ops/sec ±2.76% (78 runs sampled)
stablelib V2.decrypt x 14,928 ops/sec ±3.04% (77 runs sampled)
from paseto.
I was just going to verify my expectation, but you did before :) I'll take into consideration, but then i'll have libsodium-wrappers and stablelib if i import paseto to my stack 🤔 . Thanks for the benchmarks
from paseto.
Related Issues (17)
- question: how to you generate and export private keys? HOT 12
- Generating a public paseto key should give the public key attached HOT 1
- Characters that Paseto uses to create tokens HOT 1
- question: How I create a secret key from a string? HOT 3
- TypeError: keyObject must be a KeyObject instance HOT 2
- Node 14 bug - TypeError: Cannot read property 'subtle' of undefined (line 10 of crypto_worker.js) HOT 1
- bug: typescript types missing in install HOT 1
- Fails to verify with `complete: true` option if there is no footer. HOT 1
- `{}` makes decryption results hard to use HOT 3
- At paseto/lib/v1/sign.js HOT 1
- bug: Library breaks on lambda HOT 3
- Bug cannot read property 'subtle' of undefined HOT 1
- Not using ISO8601 Date Format HOT 2
- question: How many requests per second it handles? HOT 1
- question: Nodejs Crypto vs libsodium HOT 9
- stuck on key length error HOT 10
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 paseto.