update deps, fix PGP

This commit is contained in:
_Bastler
2022-11-30 15:16:57 +01:00
parent 7391ff1147
commit edecc344e7
5 changed files with 5959 additions and 5292 deletions
@@ -36,14 +36,14 @@ export class ProfileFieldPgpBlob implements OnInit {
}
let pgpOption = {
userIds: [ { name: auth.principal.username, email: auth.principal.username + "@we.bstly.de" } ],
userIDs: [ { name: auth.principal.username, email: auth.principal.username + "@we.bstly.de" } ],
curve: "ed25519",
}
openpgp.generateKey(pgpOption).then((key) => {
this.data = {};
this.data.privateKey = key.privateKeyArmored;
this.data.publicKey = key.publicKeyArmored;
this.data.privateKey = key.privateKey;
this.data.publicKey = key.publicKey;
this.downloadKey.nativeElement.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(this.data.privateKey));
this.downloadKey.nativeElement.setAttribute('download', auth.principal.username + ".private.key");