edo999
Explore posts from serversHow to use crypto generateKeyPairSync?
I'm trying to make
generateKeyPairSync
work, but it fails.
The sample code at the bottom of https://docs.deno.com/api/node/crypto/~/generateKeyPairSync does not work on deno 1.44.4 (MacOS Sonoma 14.5 M2 chip). I get:
I get the same thing with generateKeyPair
.
The only way it works, is if I remove the both key encodings from the options:
What am I doing wrong?2 replies
Get the user IP address
Is there no better way to get the user IP address than doing this 👇🏽?
https://github.com/EdamAme-x/deno-deploy-hono-ip/blob/main/entry.ts
It works, but it's a bit convoluted.
FYI, I use the IP address to implement a rate limiter.
3 replies