This commit is contained in:
Sofiya Tepikin
2022-09-19 15:56:54 +02:00
parent f5004f2d7a
commit 9f9eadfc46
11 changed files with 16 additions and 324 deletions
-11
View File
@@ -1,6 +1,5 @@
import Realm from 'realm'
import { LocalDate, ChronoUnit } from '@js-joda/core'
import nodejs from 'nodejs-mobile-react-native'
import fs from 'react-native-fs'
import schemas from './schemas'
@@ -184,16 +183,6 @@ export function tryToImportWithoutDelete(cycleDays) {
})
}
export function requestHash(type, pw) {
nodejs.channel.post(
'request-SHA512',
JSON.stringify({
type: type,
message: pw,
})
)
}
export async function changeDbEncryption(hash) {
let key
if (hash) key = hashToInt8Array(hash)