StorageEncryption
For the complete documentation index, see llms.txt
Midnight.js API Reference v4.0.4
Midnight.js API Reference / @midnight-ntwrk/midnight-js-level-private-state-provider / StorageEncryption
Class: StorageEncryption
Methods
decrypt()
decrypt(
encryptedData):Promise<string>
Parameters
encryptedData
string
Returns
Promise<string>
decryptWithPassword()
decryptWithPassword(
encryptedData,password):Promise<string>
Parameters
encryptedData
string
password
string
Returns
Promise<string>
encrypt()
encrypt(
data):Promise<string>
Parameters
data
string
Returns
Promise<string>
getSalt()
getSalt():
Buffer
Returns
Buffer
verifyPassword()
verifyPassword(
password):Promise<boolean>
Parameters
password
string
Returns
Promise<boolean>