Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nymhelper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
putro
nymhelper
Commits
06a47deb
Commit
06a47deb
authored
Dec 01, 2017
by
putro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for listing secret keys a new nym
parent
0a84b3b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
nymhelper.py
nymhelper.py
+3
-2
No files found.
nymhelper.py
View file @
06a47deb
...
...
@@ -495,7 +495,7 @@ def encrypt(message, recipient, sign=False, passphrase=False, test=False):
return
encrypted_ascii_data
def
createKey
(
comment
=
""
,
key_type
=
"RSA"
,
key_length
=
1024
):
def
createKey
(
comment
=
""
,
key_type
=
"RSA"
,
key_length
=
2048
):
""" Create a gpg key """
global
last_message
email
=
raw_input
(
"insert email address for the key: "
)
...
...
@@ -517,7 +517,7 @@ def listSecKeys():
counter
=
0
for
k
in
seckeys
:
counter
+=
1
print
"%s - %s - %s"
%
(
counter
,
k
[
"uids"
][
1
],
k
[
"keyid"
])
print
"%s - %s - %s"
%
(
counter
,
k
[
"uids"
][
0
],
k
[
"keyid"
])
return
seckeys
...
...
@@ -633,6 +633,7 @@ def deleteKey(fp):
def
createNym
():
""" Create or update a nym """
print
"
\n
For new nym, add them to the config file first...
\n
"
askNym
()
fp
=
selectSecKey
(
options
[
'nym-email'
])
pk
=
exportPubKey
(
fp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment