fix #1650: keyfiles stored in the app can't be used

This commit is contained in:
antelle 2020-12-10 20:33:48 +01:00
parent 220a27e030
commit 0b70017780
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 3 additions and 1 deletions

View File

@ -716,7 +716,9 @@ class FileModel extends Model {
}
static createKeyFileWithHash(hash) {
return kdbxweb.Credentials.createKeyFileWithHash(hash);
const hashData = kdbxweb.ByteUtils.base64ToBytes(hash);
const hexHash = kdbxweb.ByteUtils.bytesToHex(hashData);
return kdbxweb.ByteUtils.stringToBytes(hexHash);
}
}