Package keyczar :: Module keyczart
[hide private]
[frames] | no frames]

Module keyczart

source code

Keyczart(ool) is a utility for creating and managing Keyczar keysets.


Author: arkajit.dey@gmail.com (Arkajit Dey)

Classes [hide private]
  _Name
  Command
Enum representing keyczart commands.
  Flag
Enum representing keyczart flags.
Functions [hide private]
 
GetCommand(cmd) source code
 
GetFlag(flag) source code
 
Create(loc, name, purpose, asymmetric=None) source code
 
AddKey(loc, status, crypter=None, size=None) source code
 
PubKey(loc, dest) source code
 
Promote(loc, num) source code
 
Demote(loc, num) source code
 
Revoke(loc, num) source code
 
GenKeySet(loc) source code
 
Clean(directory) source code
 
UseKey(purpose, loc, dest, crypter=None, msg='This is some test data') source code
 
Usage() source code
 
CreateGenericKeyczar(loc, crypter=None) source code
 
UpdateGenericKeyczar(czar, loc, encrypter=None) source code
 
main(argv) source code
Variables [hide private]
  KEYSETS = [('aes', keyinfo.DECRYPT_AND_ENCRYPT, None, None), (...
  CREATE = Command("create")
  ADDKEY = Command("addkey")
  PUBKEY = Command("pubkey")
  PROMOTE = Command("promote")
  DEMOTE = Command("demote")
  REVOKE = Command("revoke")
  GENKEY = Command("genkey")
  commands = {"create": CREATE, "addkey": ADDKEY, "pubkey": PUBK...
  LOCATION = Flag("location")
  NAME = Flag("name")
  SIZE = Flag("size")
  STATUS = Flag("status")
  PURPOSE = Flag("purpose")
  DESTINATION = Flag("destination")
  VERSION = Flag("version")
  ASYMMETRIC = Flag("asymmetric")
  CRYPTER = Flag("crypter")
  flags = {"location": LOCATION, "name": NAME, "size": SIZE, "st...
Variables Details [hide private]

KEYSETS

Value:
[('aes', <keyczar.keyinfo.KeyPurpose object at 0x6f9190>, None, None),
 ('aes-crypted',
  <keyczar.keyinfo.KeyPurpose object at 0x6f9190>,
  None,
  'aes'),
 ('hmac', <keyczar.keyinfo.KeyPurpose object at 0x6f91d0>, None, None)\
,
 ('rsa', <keyczar.keyinfo.KeyPurpose object at 0x6f9190>, 'rsa', None)\
...

commands

Value:
{"create": CREATE, "addkey": ADDKEY, "pubkey": PUBKEY, "promote": PROM\
OTE, "demote": DEMOTE, "revoke": REVOKE, "genkey": GENKEY}

flags

Value:
{"location": LOCATION, "name": NAME, "size": SIZE, "status": STATUS, "\
purpose": PURPOSE, "destination": DESTINATION, "version": VERSION, "as\
ymmetric": ASYMMETRIC, "crypter": CRYPTER}