Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/crypto.ts>Sign

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Sign
extends Writable
Re-export
import { Sign } from "https://deno.land/std@0.145.0/node/crypto.ts";

Constructors

new
Sign(algorithm: string, _options?: WritableOptions)

Methods

sign(_privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, _outputEncoding?: BinaryToTextEncoding): Buffer | string
update(data: BinaryLike): this
update(data: string, inputEncoding: Encoding): this
update(_data: BinaryLike | string, _inputEncoding?: Encoding): this