Creating JWT and signing it #1687
Replies: 9 comments
-
Posted at 2024-04-09 by @gfwilliams Would https://www.espruino.com/Reference#l_crypto_SHA256 work? That doesn't have the HMAC but you might be able to use https://www.espruino.com/hmac Seems like there's a convenience function for SHA1 but |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-09 by @MaBecker Nice, thank for sharing, will try to write a HmacSHA256 module. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-11 by @MaBecker SHA-256 64 32 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-11 by @gfwilliams Maybe you could do a PR to add that to the hmac module? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-11 by @MaBecker Yes, definitely - on my way but struggling a fresh LINUX build and a working connecting via tcp. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-11 by @MaBecker There should be a new module named hmac2, because not all boards include SHA256. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-12 by @MaBecker Missing a last piece, how to encode the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-12 by @MaBecker got it
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-12 by @MaBecker Using module hmac256 to create JSON Web Token. A PR is wating for verification and comments.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-08 by @MaBecker
Found this link and started with this:
Any hints howto?
Beta Was this translation helpful? Give feedback.
All reactions