mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
parent
07b0f20305
commit
d3ee36bb97
68 changed files with 629 additions and 392 deletions
|
|
@ -47,6 +47,13 @@ function PopupsGenerateNewOpenPgpKeyViewModel()
|
|||
|
||||
_.delay(function () {
|
||||
mKeyPair = window.openpgp.generateKeyPair(1, Utils.pInt(self.keyBitLength()), sUserID, Utils.trim(self.password()));
|
||||
// 0.6.0
|
||||
// mKeyPair = window.openpgp.generateKeyPair({
|
||||
// 'numBits': Utils.pInt(self.keyBitLength()),
|
||||
// 'userId': sUserID,
|
||||
// 'passphrase': Utils.trim(self.password())
|
||||
// });
|
||||
|
||||
if (mKeyPair && mKeyPair.privateKeyArmored)
|
||||
{
|
||||
oOpenpgpKeyring.privateKeys.importKey(mKeyPair.privateKeyArmored);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue