mirror of https://github.com/keeweb/keeweb
possibility to use V2 keyfiles (.keyx)
parent
7e36418276
commit
3177a87690
|
@ -522,10 +522,11 @@ class FileModel extends Model {
|
|||
}
|
||||
|
||||
generateAndSetKeyFile() {
|
||||
const keyFile = kdbxweb.Credentials.createRandomKeyFile();
|
||||
const keyFileName = 'Generated';
|
||||
this.setKeyFile(keyFile, keyFileName);
|
||||
return keyFile;
|
||||
return kdbxweb.Credentials.createRandomKeyFile().then((keyFile) => {
|
||||
const keyFileName = 'Generated';
|
||||
this.setKeyFile(keyFile, keyFileName);
|
||||
return keyFile;
|
||||
});
|
||||
}
|
||||
|
||||
resetKeyFile() {
|
||||
|
|
|
@ -434,10 +434,11 @@ class SettingsFileView extends View {
|
|||
}
|
||||
|
||||
generateKeyFile() {
|
||||
const keyFile = this.model.generateAndSetKeyFile();
|
||||
const blob = new Blob([keyFile], { type: 'application/octet-stream' });
|
||||
FileSaver.saveAs(blob, this.model.name + '.key');
|
||||
this.renderKeyFileSelect();
|
||||
this.model.generateAndSetKeyFile().then((keyFile) => {
|
||||
const blob = new Blob([keyFile], { type: 'application/octet-stream' });
|
||||
FileSaver.saveAs(blob, this.model.name + '.key');
|
||||
this.renderKeyFileSelect();
|
||||
});
|
||||
}
|
||||
|
||||
clearKeyFile() {
|
||||
|
|
|
@ -9783,9 +9783,9 @@
|
|||
}
|
||||
},
|
||||
"kdbxweb": {
|
||||
"version": "1.11.0",
|
||||
"resolved": "https://registry.npmjs.org/kdbxweb/-/kdbxweb-1.11.0.tgz",
|
||||
"integrity": "sha512-8jhyAU+X8Kk9zsQobwMwx6wFI6XJyMrWuPWq+PcWaYwBW3l9ruN91FbRWbLSQvKku3IRLgpMgCIqiWBS/tQjCQ==",
|
||||
"version": "1.13.0",
|
||||
"resolved": "https://registry.npmjs.org/kdbxweb/-/kdbxweb-1.13.0.tgz",
|
||||
"integrity": "sha512-WDTZH63zYP4zdS/kCigyIeX0kEboRgR7wuToaLBHVchTKeNOisi3d2rdpJRQaCzcAAzoqOR8nZon2wpW8DH1+w==",
|
||||
"requires": {
|
||||
"pako": "github:keeweb/pako#653c0b00d8941c89d09ed4546d2179001ec44efc",
|
||||
"text-encoding": "github:keeweb/text-encoding#4dfb7cb0954c222852092f8b06ae4f6b4f60bfbb",
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
"jquery": "3.5.1",
|
||||
"json-loader": "^0.5.7",
|
||||
"jsqrcode": "github:antelle/jsqrcode#0.1.3",
|
||||
"kdbxweb": "^1.11.0",
|
||||
"kdbxweb": "^1.13.0",
|
||||
"load-grunt-tasks": "5.1.0",
|
||||
"lodash": "^4.17.20",
|
||||
"marked": "^1.2.5",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.16.2 (2020-12-??)
|
||||
`+` possibility to use V2 keyfiles (.keyx)
|
||||
`-` fixed a missing icon in the local file question box
|
||||
`-` minor license screen fixes
|
||||
|
||||
|
|
Loading…
Reference in New Issue