Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add hashing function

ammarahm-ed3ff2fe14d449
diff --git a/apps/mobile/src/utils/Storage.js b/apps/mobile/src/utils/Storage.js
index c4bb39fe7..357669d2f 100644
--- a/apps/mobile/src/utils/Storage.js
+++ b/apps/mobile/src/utils/Storage.js
@@ -153,6 +153,10 @@ async function checkAndCreateDir(path) {
return dir;
}
+async function hash(password,email) {
+ return await Sodium.hashPassword(password,email)
+}
+
export default {
read,
write,
@@ -168,4 +172,5 @@ export default {
deriveCryptoKey,
getCryptoKey,
removeCryptoKey,
+ hash
};