Skip to content

Commit

Permalink
[worker] better doc
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Apr 8, 2024
1 parent 13066b5 commit 823659d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/worker-api/src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export function parseNodeRSA(data: any): NodeRSA {
function setKeyOpts(key: NodeRSA) {
key.setOptions(
{
// Enforce using the pure javascript implementations, as
// compatibility with node's crypto is broken and leads
// to bad outputs.
// Enforce using the pure javascript implementations by
// setting the `browser` environment, as compatibility
// with node's crypto is broken and leads to bad outputs.
environment: 'browser',
encryptionScheme: {
scheme: 'pkcs1_oaep',
Expand Down

0 comments on commit 823659d

Please sign in to comment.