misskey-dev / node-http-message-signatures Goto Github PK
View Code? Open in Web Editor NEWRFC 9421
License: MIT License
RFC 9421
License: MIT License
TypeError: Cannot read properties of undefined (reading 'subtle')
v18はglobalにcrypto
がない
https://datatracker.ietf.org/doc/html/rfc9421#name-multiple-signatures
英語読めない(AIとかで仕様書読むやつで無料のやつないの)
案: Hono in Service Workerとメインスレッドとで通信しあう
node-http-message-signatures/src/utils.ts
Line 49 in 1598c72
verifyDigestHeaderが不明なダイジェストアルゴリズムでエラーになる
NotSupportedError: Unrecognized algorithm name
at new DOMException (node:internal/per_context/domexception:53:5)
at __node_internal_ (node:internal/util:670:10)
at normalizeAlgorithm (node:internal/crypto/util:321:11)
at normalizeAlgorithm (node:internal/crypto/util:293:12)
at SubtleCrypto.digest (node:internal/crypto/webcrypto:79:15)
at createBase64Digest (804:54)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async verifyRFC3230DigestHeader (844:16)
at async verifyDigestHeader (859:12)
Expected: false
ここでサポートしているものをチェックするか
node-http-message-signatures/src/digest/digest-rfc3230.ts
Lines 41 to 45 in dcb3280
JSON Web Keyも受け付ける
汎用性が増す
(Nodeでのパフォーマンス面での違いがなければ実装したい)
PKCS#1からPKCS#8に変換するやつを作る必要がある
なんもわからん
sha1とかmd5 hashを制限したりする (これらはデフォルトオフで良いかもしれないが)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.