aboutsummaryrefslogtreecommitdiffstats
path: root/moon-abe/cpabe-0.11/cpabe-keygen.more-man
blob: 7ef94309b4f8486b1821311b2bc32dcb54400d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[examples]

Generating a key for a new employee Sara:

  $ cpabe-keygen -o sara_priv_key pub_key master_key \\
.br
      sysadmin it_department

Generating a key with more complicated attributes:

  $ cpabe-keygen -o kevin_priv_key pub_key master_key \\
.br
      business_staff strategy_team 'executive_level = 7#4' \\
.br
      office=2362 'hire_date = '`date +%s`

Note the usage of date (1) as a convenient way of storing a time in a
numerical attribute.

[see also]
.BR cpabe-setup (1),
.BR cpabe-enc (1),
.BR cpabe-dec (1)