cloudflare / cloudflare/workerd

node:crypto.argon2 not supported

Open
#6,906 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

```
import * as crypto from "node:crypto";
export default {
async fetch(request, env, ctx) {
const apiStatus = {
argon2: typeof crypto.argon2,
argon2Sync: typeof crypto.argon2Sync,
scrypt: typeof crypto.scrypt,
pbkdf2: typeof crypto.pbkdf2,
};
return Response.json(
{
supported: false,
apiStatus
},
{ status: 500 }
);
}
};
```
get response
`{"supported":false,"apiStatus":{
"argon2":"undefined",
"argon2Sync":"undefined",
"scrypt":"function",
"pbkdf2":"function"}}`
even scrtpt is supported, but argon2 is not, I dont know why.
[doc](https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/) says
**`All node:crypto APIs are fully supported in Workers`**
but not all

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.