MCPcopy Create free account
hub / github.com/basarat/typescript-book / Cipher

Interface Cipher

code/compiler/typings/node/node.d.ts:1590–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588 export function createCipher(algorithm: string, password: any): Cipher;
1589 export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
1590 interface Cipher {
1591 update(data: Buffer): Buffer;
1592 update(data: string, input_encoding?: string, output_encoding?: string): string;
1593 final(): Buffer;
1594 final(output_encoding: string): string;
1595 setAutoPadding(auto_padding: boolean): void;
1596 }
1597 export function createDecipher(algorithm: string, password: any): Decipher;
1598 export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
1599 interface Decipher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected