paulmillr / noble-ciphers

Audited & minimal JS implementation of Salsa20, ChaCha and AES
https://paulmillr.com/noble
MIT License
201 stars 7 forks source link

@noble/utils #42

Closed steida closed 2 hours ago

steida commented 3 hours ago

I suppose it should be one library to save some bytes when people use both @noble/ciphers and @noble/hashes. Thank you very much for your work.

paulmillr commented 2 hours ago

Adding dependency to save 500 bytes is not worth it.

Inlining all the way.

steida commented 2 hours ago

OK, but it's your dependency, so I don't understand why it should be a problem. Anyway, it was just an idea. Feel free to ignore it.

paulmillr commented 1 hour ago

Imagine all packages incorporate utils tomorrow:

So, overall, brings too much complexity. 500 bytes is not a huge deal.