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
Crans Passwords
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
Crans Passwords
Commits
7b354dcb
Commit
7b354dcb
authored
Feb 26, 2013
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improves recipients' details
parent
85fcef1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
README
README
+2
-1
cranspasswords.py
cranspasswords.py
+12
-2
No files found.
README
View file @
7b354dcb
...
...
@@ -3,9 +3,10 @@ Ce dépôt git contient à la fois le programme client (à utiliser sur votre
ordinateur) et le serveur.
== Installation et configuration du client ==
* Copier le dépôt git sur votre ordinateur:
* Copier le dépôt git sur votre ordinateur
:
$ git clone git://git.crans.org/git/cranspasswords.git
* Copier clientconfig.example.py en clientconfig.py et adapter
à vos besoins
* Si ce n'est déjà fait, indiquer votre clé publique sur gest_crans
* ???
cranspasswords.py
View file @
7b354dcb
...
...
@@ -182,9 +182,19 @@ def get_recipients_of_roles(roles):
return
recipients
def
get_dest_of_roles
(
roles
):
""" Summarize recipients of a role """
allkeys
=
all_keys
()
return
[
"%s (%s -> %s)"
%
(
rec
,
allkeys
[
rec
][
0
],
allkeys
[
rec
][
1
])
for
rec
in
\
get_recipients_of_roles
(
roles
)]
def
additionnal_info
(
rec
):
""" Gives additionnal information for a given recipient """
if
len
(
allkeys
[
rec
])
==
0
:
return
""
out
=
allkeys
[
rec
][
0
]
if
len
(
allkeys
[
rec
])
>
1
:
out
+=
" -> "
+
allkeys
[
rec
][
1
]
return
"(%s)"
%
out
return
[
"%s %s"
%
(
rec
,
additionnal_info
(
rec
))
for
rec
in
\
get_recipients_of_roles
(
roles
)
]
def
encrypt
(
roles
,
contents
):
"""Chiffre le contenu pour les roles donnés"""
...
...
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