Package keyczar :: Module keyczar :: Class Encrypter
[hide private]
[frames] | no frames]

Class Encrypter

source code

object --+    
         |    
   Keyczar --+
             |
            Encrypter
Known Subclasses:

Capable of encrypting only.

Instance Methods [hide private]
 
IsAcceptablePurpose(self, purpose)
Only valid if purpose includes encrypting.
source code
string
Encrypt(self, data)
Encrypt the data and return the ciphertext.
source code

Inherited from Keyczar: GetKey, __init__, __str__

Inherited from Keyczar (private): _AddKey, _ParseHeader

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Static Methods [hide private]
Encrypter
Read(location)
Return an Encrypter object created from FileReader at given location.
source code
Properties [hide private]

Inherited from Keyczar: primary_key, versions

Inherited from object: __class__

Method Details [hide private]

Read(location)
Static Method

source code 

Return an Encrypter object created from FileReader at given location.

Parameters:
  • location (string) - pathname of the directory storing the key files
Returns: Encrypter
an Encrypter to manage the keys stored at the given location and perform encryption functions.
Overrides: Keyczar.Read

IsAcceptablePurpose(self, purpose)

source code 

Only valid if purpose includes encrypting.

Overrides: Keyczar.IsAcceptablePurpose

Encrypt(self, data)

source code 

Encrypt the data and return the ciphertext.

Parameters:
  • data (string) - message to encrypt
Returns: string
ciphertext encoded as a Base64 string
Raises: