Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doc/api/crypto.md
Co-Authored-By: mcollina <matteo.collina@gmail.com>
  • Loading branch information
lpinca and mcollina authored Jan 9, 2019
commit a678441c865b0da5cd3f96d96c2eaf1066e5024a
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const cipher = crypto.createCipheriv(algorithm, key, iv);
let encrypted = '';
cipher.on('readable', () => {
let chunk;
while (null !== (chunk = readable.read())) {
while (null !== (chunk = cipher.read())) {
encrypted += chunk.toString('hex');
}
});
Expand Down