mirror of https://github.com/keeweb/keeweb
fix #1650: keyfiles stored in the app can't be used
parent
220a27e030
commit
0b70017780
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue