diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-03-21 17:31:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 17:31:51 +0300 |
commit | 298cc8212a5b48dccabea1e2b41257f20699a552 (patch) | |
tree | a1886e5a4e01467b285a3456735c4473fc8ffd12 /doc/api | |
parent | 4e2fefc2d0a82d8fadd9916654802e046eda8a96 (diff) |
doc: unify import order in CCM example
Refs: https://github.com/nodejs/node/pull/39043
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/crypto.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 2560faec71a..3d291df3e3b 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -5652,12 +5652,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); |