Constructors
Methods
getRandomSalt
- getRandomSalt(): string
Returns string
getDerivedKey
- getDerivedKey(password, salt): Promise<Buffer>
Parameters
- password: string
- salt: string
Returns Promise<Buffer>
getDerivedKeySync
- getDerivedKeySync(password, salt): Buffer
Parameters
- password: string
- salt: string
Returns Buffer
getEncryptedBuffer
- getEncryptedBuffer(value, password, salt): Promise<SecureEncryptionResult>
Parameters
- value: Buffer
- password: string
- salt: string
getEncryptedBufferSync
- getEncryptedBufferSync(value, password, salt): SecureEncryptionResult
Parameters
- value: Buffer
- password: string
- salt: string
getEncryptedString
- getEncryptedString(value, password, salt): Promise<SecureEncryptionResult>
Parameters
- value: string
- password: string
- salt: string
getEncryptedStringSync
- getEncryptedStringSync(value, password, salt): SecureEncryptionResult
Parameters
- value: string
- password: string
- salt: string
getDecryptedBuffer
- getDecryptedBuffer(buffer, password, salt, iv, authTag): Promise<Buffer>
Parameters
- buffer: Buffer
- password: string
- salt: string
- iv: string
- authTag: string
Returns Promise<Buffer>
getDecryptedBufferSync
- getDecryptedBufferSync(buffer, password, salt, iv, authTag): Buffer
Parameters
- buffer: Buffer
- password: string
- salt: string
- iv: string
- authTag: string
Returns Buffer
getDecryptedString
- getDecryptedString(value, password, salt, iv, authTag): Promise<string>
Parameters
- value: string
- password: string
- salt: string
- iv: string
- authTag: string
Returns Promise<string>
getDecryptedStringSync
- getDecryptedStringSync(value, password, salt, iv, authTag): string
Parameters
- value: string
- password: string
- salt: string
- iv: string
- authTag: string
Returns string
getPasswordEncryptedBuffer
- getPasswordEncryptedBuffer(value, password): Promise<Buffer>
Parameters
- value: Buffer
- password: string
Returns Promise<Buffer>
getPasswordEncryptedBufferSync
- getPasswordEncryptedBufferSync(value, password): Buffer
Parameters
- value: Buffer
- password: string
Returns Buffer
getPasswordEncryptedString
- getPasswordEncryptedString(value, password): Promise<Buffer>
Parameters
- value: string
- password: string
Returns Promise<Buffer>
getPasswordEncryptedStringSync
- getPasswordEncryptedStringSync(value, password): Buffer
Parameters
- value: string
- password: string
Returns Buffer
getPasswordDecryptedBuffer
- getPasswordDecryptedBuffer(encryptedBuffer, password): Promise<Buffer>
Parameters
- encryptedBuffer: Buffer
- password: string
Returns Promise<Buffer>
getPasswordDecryptedBufferSync
- getPasswordDecryptedBufferSync(encryptedBuffer, password): Buffer
Parameters
- encryptedBuffer: Buffer
- password: string
Returns Buffer
getPasswordDecryptedString
- getPasswordDecryptedString(value, password): Promise<string>
Parameters
- value: string
- password: string
Returns Promise<string>
getPasswordDecryptedStringSync
- getPasswordDecryptedStringSync(value, password): string
Parameters
- value: string
- password: string
Returns string
getMacSync
- getMacSync(encryptedBuffer, password): string
Parameters
- encryptedBuffer: Buffer
- password: string
Returns string
createHash
- createHash(algorithm, options?): Hash
Parameters
- algorithm: string
Optional
options: HashOptions
Returns Hash
createSign
- createSign(algorithm, options?): Sign
Parameters
- algorithm: string
Optional
options: WritableOptions
Returns Sign
createVerify
- createVerify(algorithm, options?): Verify
Parameters
- algorithm: string
Optional
options: WritableOptions
Returns Verify
generateKeyPair
- generateKeyPair(options, callback): void
Returns void
createPublicKey
- createPublicKey(key): KeyObject
Returns KeyObject
createPrivateKey
- createPrivateKey(input): KeyObject
Returns KeyObject