Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
monkeysign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
monkeysphere
monkeysign
Commits
e1025780
Commit
e1025780
authored
10 years ago
by
Antoine Beaupré
Browse files
Options
Downloads
Patches
Plain Diff
uniform usage of OpenPGP instead of GPG or PGP
parent
236c5141
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
monkeysign/cli.py
+1
-1
1 addition, 1 deletion
monkeysign/cli.py
monkeysign/gtkui.py
+1
-1
1 addition, 1 deletion
monkeysign/gtkui.py
monkeysign/ui.py
+5
-5
5 additions, 5 deletions
monkeysign/ui.py
with
7 additions
and
7 deletions
monkeysign/cli.py
+
1
−
1
View file @
e1025780
...
@@ -35,7 +35,7 @@ passwords."""
...
@@ -35,7 +35,7 @@ passwords."""
# override default options to allow passing a keyid
# override default options to allow passing a keyid
usage
=
_
(
'
%prog [options] <keyid>
'
)
usage
=
_
(
'
%prog [options] <keyid>
'
)
epilog
=
_
(
'
<keyid>: a
G
PG fingerprint or key id
'
)
epilog
=
_
(
'
<keyid>: a
Open
PG
P
fingerprint or key id
'
)
def
parse_args
(
self
,
args
):
def
parse_args
(
self
,
args
):
"""
override main parsing: we absolutely need an argument
"""
"""
override main parsing: we absolutely need an argument
"""
...
...
This diff is collapsed.
Click to expand it.
monkeysign/gtkui.py
+
1
−
1
View file @
e1025780
...
@@ -266,7 +266,7 @@ class MonkeysignScan(gtk.Window):
...
@@ -266,7 +266,7 @@ class MonkeysignScan(gtk.Window):
swin
=
gtk
.
ScrolledWindow
()
swin
=
gtk
.
ScrolledWindow
()
swin
.
set_policy
(
gtk
.
POLICY_AUTOMATIC
,
gtk
.
POLICY_AUTOMATIC
)
swin
.
set_policy
(
gtk
.
POLICY_AUTOMATIC
,
gtk
.
POLICY_AUTOMATIC
)
swin
.
add_with_viewport
(
self
.
qrcode
)
swin
.
add_with_viewport
(
self
.
qrcode
)
label
=
gtk
.
Label
(
_
(
'
This is a QR-code version of your PGP fingerprint. Scan this with another
m
onkeysign to transfer your fingerprint.
'
))
label
=
gtk
.
Label
(
_
(
'
This is a QR-code version of your
Open
PGP fingerprint. Scan this with another
M
onkeysign to transfer your fingerprint.
'
))
label
.
set_line_wrap
(
True
)
label
.
set_line_wrap
(
True
)
self
.
qrcodewidget
.
pack_start
(
label
,
False
)
self
.
qrcodewidget
.
pack_start
(
label
,
False
)
self
.
qrcodewidget
.
pack_start
(
swin
)
self
.
qrcodewidget
.
pack_start
(
swin
)
...
...
This diff is collapsed.
Click to expand it.
monkeysign/ui.py
+
5
−
5
View file @
e1025780
...
@@ -266,7 +266,7 @@ work.
...
@@ -266,7 +266,7 @@ work.
# export public key material associated with detected private
# export public key material associated with detected private
if
not
self
.
tmpkeyring
.
import_data
(
self
.
keyring
.
export_data
(
self
.
signing_key
.
fpr
)):
if
not
self
.
tmpkeyring
.
import_data
(
self
.
keyring
.
export_data
(
self
.
signing_key
.
fpr
)):
self
.
abort
(
_
(
'
could not find public key material, do you have a
GP
G
key?
'
))
self
.
abort
(
_
(
'
could not find public key material, do you have a
n OpenP
GP key?
'
))
def
sign_key
(
self
):
def
sign_key
(
self
):
"""
sign the key uids, as specified
"""
"""
sign the key uids, as specified
"""
...
@@ -393,8 +393,8 @@ mail.
...
@@ -393,8 +393,8 @@ mail.
# the email body
# the email body
body
=
_
(
"""
body
=
_
(
"""
Please find attached your signed PGP key. You can import the
signed
Please find attached your signed
Open
PGP key. You can import the
key by running each through `gpg --import`.
signed
key by running each through `gpg --import`.
If you have multiple user ids, each signature was sent in a separate
If you have multiple user ids, each signature was sent in a separate
email to each user id.
email to each user id.
...
@@ -491,7 +491,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
...
@@ -491,7 +491,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
keypart
=
MIMEBase
(
'
application
'
,
'
pgp-keys
'
,
name
=
filename
)
keypart
=
MIMEBase
(
'
application
'
,
'
pgp-keys
'
,
name
=
filename
)
keypart
.
add_header
(
'
Content-Disposition
'
,
'
attachment
'
,
filename
=
filename
)
keypart
.
add_header
(
'
Content-Disposition
'
,
'
attachment
'
,
filename
=
filename
)
keypart
.
add_header
(
'
Content-Transfer-Encoding
'
,
'
7bit
'
)
keypart
.
add_header
(
'
Content-Transfer-Encoding
'
,
'
7bit
'
)
keypart
.
add_header
(
'
Content-Description
'
,
(
_
(
'
signed PGP Key %s, uid %s
'
)
%
(
self
.
keyfpr
,
self
.
recipient
.
decode
(
'
utf-8
'
))))
keypart
.
add_header
(
'
Content-Description
'
,
(
_
(
'
signed
Open
PGP Key %s, uid %s
'
)
%
(
self
.
keyfpr
,
self
.
recipient
.
decode
(
'
utf-8
'
))))
keypart
.
set_payload
(
self
.
tmpkeyring
.
export_data
(
self
.
keyfpr
))
keypart
.
set_payload
(
self
.
tmpkeyring
.
export_data
(
self
.
keyfpr
))
return
MIMEMultipart
(
'
mixed
'
,
None
,
[
text
,
keypart
])
return
MIMEMultipart
(
'
mixed
'
,
None
,
[
text
,
keypart
])
...
@@ -504,7 +504,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
...
@@ -504,7 +504,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
p2
.
add_header
(
'
Content-Transfer-Encoding
'
,
'
7bit
'
)
p2
.
add_header
(
'
Content-Transfer-Encoding
'
,
'
7bit
'
)
p2
.
set_payload
(
encrypted
)
p2
.
set_payload
(
encrypted
)
msg
=
MIMEMultipart
(
'
encrypted
'
,
None
,
[
p1
,
p2
],
protocol
=
"
application/pgp-encrypted
"
)
msg
=
MIMEMultipart
(
'
encrypted
'
,
None
,
[
p1
,
p2
],
protocol
=
"
application/pgp-encrypted
"
)
msg
.
preamble
=
_
(
'
This is a multi-part message in PGP/MIME format...
'
)
msg
.
preamble
=
_
(
'
This is a multi-part message in
Open
PGP/MIME format...
'
)
msg
[
'
Subject
'
]
=
Header
(
self
.
subject
.
encode
(
'
utf-8
'
),
'
UTF-8
'
).
encode
()
msg
[
'
Subject
'
]
=
Header
(
self
.
subject
.
encode
(
'
utf-8
'
),
'
UTF-8
'
).
encode
()
name
,
address
=
parseaddr
(
self
.
mailfrom
)
name
,
address
=
parseaddr
(
self
.
mailfrom
)
msg
[
'
From
'
]
=
formataddr
((
Header
(
name
.
encode
(
'
utf-8
'
),
'
UTF-8
'
).
encode
(),
address
))
msg
[
'
From
'
]
=
formataddr
((
Header
(
name
.
encode
(
'
utf-8
'
),
'
UTF-8
'
).
encode
(),
address
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment