update deps, fix PGP
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user