コード例 #1
0
ファイル: elgamal.py プロジェクト: tuangeek/encrypted-mongodb
 def __init__(self, keys=None, exponential_mode=False):
     self.exponential_mode = exponential_mode
     Cipher.__init__(self, keys)
コード例 #2
0
ファイル: aristocrat.py プロジェクト: Insaida/NSFcryptTool
 def __init__(self):
   Cipher.__init__(self)
   self.ctkey = string.ascii_uppercase
   self.ptkey = "-" * 26
   self.decrypt_filter = lambda char: char in (string.ascii_letters + string.punctuation + " ")
   self.encrypt_filter = self.decrypt_filter