mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
core: writeEncrypted now accepts only base64 input
This commit is contained in:
committed by
Abdullah Atta
parent
fa4a298bfa
commit
7a773937c2
@@ -73,10 +73,9 @@ export default class FileStorage {
|
||||
return this.fs.readEncrypted(filename, encryptionKey, cipherData);
|
||||
}
|
||||
|
||||
writeEncrypted(filename, data, type, encryptionKey, mimeType) {
|
||||
return this.fs.writeEncrypted(filename, {
|
||||
writeEncryptedBase64(data, encryptionKey, mimeType) {
|
||||
return this.fs.writeEncryptedBase64({
|
||||
data,
|
||||
type,
|
||||
key: encryptionKey,
|
||||
mimeType
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user