Skip to content

docs: Crypto Cipher and Decipher examples use deprecated createCipher and createDecipher #24046

Closed
@mayankasthana

Description

The examples at
https://github.com/nodejs/node/blob/v11.1.0/doc/api/crypto.md#class-cipher

const cipher = crypto.createCipher('aes192', 'a password');

and

https://github.com/nodejs/node/blob/v11.1.0/doc/api/crypto.md#class-decipher

const decipher = crypto.createDecipher('aes192', 'a password');

use deprecated methods crypto.createCipher() and crypto.createDecipher().

The examples should be updated to use crypto.createCipheriv() and crypto.createDecipheriv() instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions