4 ms·
I've built an S3 client with similar goals like TFA, but supports pre-signing: https://github.com/nikeee/lean-s3 https://github.com/nikeee/lean-s3 Pre-signing
by nikeee 1y ago
I've built an S3 client with similar goals like TFA, but supports pre-signing:
https://github.com/nikeee/lean-s3 https://github.com/nikeee/lean-s3
Pre-signing is about 30 times faster than the AWS SDK and is not async.
You can read about why it looks like it does here: https://github.com/nikeee/lean-s3/blob/main/DESIGN_DECISIONS.md https://github.com/nikeee/lean-s3/blob/main/DESIGN_DECISIONS...
- e1g 1y agoFYI, you can add browser support by using noble-hashes[1] for SHA256/HMAC - it's a well-done library, and gives you performance that is indistinguishable from native crypto on any scale relevant to S3 operations. We use it for our in-house S3 client. [1] https://github.com/paulmillr/noble-hashes https://github.com/paulmillr/noble-hashes
- continuational 1y agoSHA256 and HMAC are widely available in the browser APIs: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...
- e1g 1y agoSublteCrypto is async, and the author specifically said they want their API to be sync.