Добавлен модуль sjcl для шифрования AES, т.к. WebCrypto API не работает с http, а только с https

This commit is contained in:
Book Pauk
2019-03-16 01:11:20 +07:00
parent a64687f64f
commit 9cbaf22270
5 changed files with 168 additions and 62 deletions

View File

@@ -32,8 +32,8 @@ class ServerStorage extends Vue {
//генерируем новый ключ
this.generateNewServerStorageKey();
}
this.hashedStorageKey = utils.toBase58(await cryptoUtils.sha256(this.serverStorageKey));
this.hashedStorageKey = utils.toBase58(cryptoUtils.sha256(this.serverStorageKey));
await this.loadProfiles();
}