Skip to content

Commit

Permalink
doc: unify import order in CCM example
Browse files Browse the repository at this point in the history
Refs: nodejs/node#39043

PR-URL: nodejs/node#42394
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
tniessen authored and guangwong committed Oct 10, 2022
1 parent c4f3729 commit 4fad371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -5546,12 +5546,12 @@ console.log(receivedPlaintext);
```

```cjs
const { Buffer } = require('buffer');
const {
createCipheriv,
createDecipheriv,
randomBytes,
} = require('crypto');
const { Buffer } = require('buffer');

const key = 'keykeykeykeykeykeykeykey';
const nonce = randomBytes(12);
Expand Down

0 comments on commit 4fad371

Please sign in to comment.