Function decryptMessageWithPassword
- decryptMessageWithPassword(encryptedMessage: EncryptedMessageObject, password: string): Promise<Buffer>
-
Returns Promise<Buffer>
- decryptMessageWithPassword(encryptedMessage: EncryptedMessageObject, password: string, encoding: "utf8" | "utf-8", options?: {
getKey?: ((options: {
iterations: number;
memorySize: number;
parallelism: number;
password: string;
salt: Buffer;
}) => Promise<Buffer>);
}): Promise<string>
-
Parameters
-
-
password: string
-
encoding: "utf8" | "utf-8"
-
Optional
options: {
getKey?: ((options: {
iterations: number;
memorySize: number;
parallelism: number;
password: string;
salt: Buffer;
}) => Promise<Buffer>);
}
-
Optional
getKey?: ((options: {
iterations: number;
memorySize: number;
parallelism: number;
password: string;
salt: Buffer;
}) => Promise<Buffer>)
-
- (options: {
iterations: number;
memorySize: number;
parallelism: number;
password: string;
salt: Buffer;
}): Promise<Buffer>
-
Parameters
-
options: {
iterations: number;
memorySize: number;
parallelism: number;
password: string;
salt: Buffer;
}
-
iterations: number
-
memorySize: number
-
parallelism: number
-
password: string
-
salt: Buffer
Returns Promise<Buffer>
Returns Promise<string>