Properties
Private
Readonly
_decrypt
Private
Readonly
_encrypt
Readonly
utils
utils: { bufferToHash: ((param0) => Promise<string>); derKeyToPem: ((param0) => Promise<string>); deriveKeyFromPassword: { (__namedParameters): Promise<Buffer>; (__namedParameters): Promise<string>; }; generateKeyPair: (() => Promise<{ privateKey: string; publicKey: string; }>); generatePasswordAndMasterKeyBasedOnAuthVersion: ((param0) => Promise<{ derivedMasterKeys: string; derivedPassword: string; }>); generateRandomString: ((param0) => Promise<string>); hashFn: ((param0) => Promise<string>); hashPassword: ((param0) => Promise<string>); importPBKDF2Key: ((param0) => Promise<CryptoKey>); importPrivateKey: ((param0) => Promise<CryptoKey>); importPublicKey: ((param0) => Promise<CryptoKey>); importRawKey: ((param0) => Promise<CryptoKey>); } = utils Type declaration
bufferToHash: ((param0) => Promise<string>)
- (param0): Promise<string>
Parameters
param0: {
algorithm: "sha512" | "sha256" | "md5";
buffer: Uint8Array;
}
algorithm: "sha512" | "sha256" | "md5"
buffer: Uint8Array
Returns Promise<string>
derKeyToPem: ((param0) => Promise<string>)
- (param0): Promise<string>
Returns Promise<string>
deriveKeyFromPassword: {
(__namedParameters): Promise<Buffer>;
(__namedParameters): Promise<string>;
}
- (__namedParameters): Promise<Buffer>
Returns Promise<Buffer>
- (__namedParameters): Promise<string>
Returns Promise<string>
generateKeyPair: (() => Promise<{
privateKey: string;
publicKey: string;
}>)
- (): Promise<{
privateKey: string;
publicKey: string;
}> Returns Promise<{
privateKey: string;
publicKey: string;
}>
generatePasswordAndMasterKeyBasedOnAuthVersion: ((param0) => Promise<{
derivedMasterKeys: string;
derivedPassword: string;
}>)
- (param0): Promise<{
derivedMasterKeys: string;
derivedPassword: string;
}> Parameters
param0: {
authVersion: AuthVersion;
rawPassword: string;
salt: string;
}
rawPassword: string
salt: string
Returns Promise<{
derivedMasterKeys: string;
derivedPassword: string;
}>
generateRandomString: ((param0) => Promise<string>)
- (param0): Promise<string>
Parameters
param0: {
length: number;
}
Returns Promise<string>
hashFn: ((param0) => Promise<string>)
- (param0): Promise<string>
Parameters
param0: {
input: string;
}
Returns Promise<string>
hashPassword: ((param0) => Promise<string>)
- (param0): Promise<string>
Parameters
param0: {
password: string;
}
Returns Promise<string>
importPBKDF2Key: ((param0) => Promise<CryptoKey>)
- (param0): Promise<CryptoKey>
Parameters
param0: {
key: string;
keyCache?: boolean;
mode?: KeyUsage[];
}
key: string
Optional
keyCache?: boolean
Optional
mode?: KeyUsage[]
importPrivateKey: ((param0) => Promise<CryptoKey>)
- (param0): Promise<CryptoKey>
Parameters
param0: {
keyCache?: boolean;
mode?: KeyUsage[];
privateKey: string;
}
Optional
keyCache?: boolean
Optional
mode?: KeyUsage[]
privateKey: string
importPublicKey: ((param0) => Promise<CryptoKey>)
- (param0): Promise<CryptoKey>
Parameters
param0: {
keyCache?: boolean;
mode?: KeyUsage[];
publicKey: string;
}
Optional
keyCache?: boolean
Optional
mode?: KeyUsage[]
publicKey: string
importRawKey: ((param0) => Promise<CryptoKey>)
- (param0): Promise<CryptoKey>
Parameters
param0: {
algorithm: "AES-GCM" | "AES-CBC";
key: Buffer;
keyCache?: boolean;
mode?: KeyUsage[];
}
algorithm: "AES-GCM" | "AES-CBC"
Optional
keyCache?: boolean
Optional
mode?: KeyUsage[]
Crypto
Date
2/1/2024 - 2:44:47 AM
Export