Skip to content

node:crypto — hash.digest('base64'|'base64url') ignores the encoding #1352

@proggeramlug

Description

@proggeramlug

createHash(alg).update(d).digest('base64'/'base64url') returns the hex string instead of base64. The digest codegen chain (crates/perry-codegen/src/expr/calls.rs) handles hex + no-arg Buffer only. Repro: node-suite/crypto/hash/digest-base64. Part of #793.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions