Commits

Cédric Bonhomme  committed 9131257 Draft

Updated copyright years.

  • Participants
  • Parent commits e164c2d

Comments (0)

Files changed (10)

 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import string
     print "Text:"
     print "".join(decrypt("".join(encrypt(string.upper(message), (7, 3))), (7, 3)))
     print
-    #brute_force("".join(encrypt(string.upper(message), (7, 3))))
+    #brute_force("".join(encrypt(string.upper(message), (7, 3))))

File autokeycipher.py

 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 
 if __name__ == '__main__':
     # Point of entry in execution mode
     print decrypt(encrypt("VIVELESVACANCES", 7), 7)
-    #print bruteforce(encrypt("QXQF VFLR TXLG VLWD PRUA", 8))
+    #print bruteforce(encrypt("QXQF VFLR TXLG VLWD PRUA", 8))
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 def encrypt(message, key):
 if __name__ == '__main__':
     # Point of entry in execution mode
     print decrypt(encrypt("B ONJOuR", "B"), "b")
-    #print bruteforce(encrypt("BONJOUR", "B"))
+    #print bruteforce(encrypt("BONJOUR", "B"))
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import utils
     print "Text:", el.decrypt(el.encrypt(7, 3))
 
     print "Signature:", el.sign(7, 5)
-    print "Check:", el.verify(7, el.sign(7, 5))
+    print "Check:", el.verify(7, el.sign(7, 5))
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import utils

File permutation.py

 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import utils
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import math
 if __name__ == '__main__':
     # Point of entry in execution mode
     rabin = Rabin(nb_bits = 256)
-    print rabin
+    print rabin

File substitution.py

 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 def encrypt(word, dic):
         'I':'Z', 'J':'Q', 'K':'W', 'L':'B', 'M':'T', 'N':'S', 'O':'F', 'P':'L', \
         'Q':'R', 'R':'C', 'S':'V', 'T':'M', 'U':'U', 'V':'E', 'W':'K', 'X':'J', 'Y':'D', 'Z':'I'}
 
-    print decrypt("MGZVYZLGHCMHJMYXSSFMNHAHYCDLMHA", dic)
+    print decrypt("MGZVYZLGHCMHJMYXSSFMNHAHYCDLMHA", dic)
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 0.1 $"
 __date__ = "$Date: 2010/10/26 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 """Tool box.
     #print word_to_bin("SALUT")
     #print binList_to_word(word_to_bin("SALUT"))
     #print miller_rabin_version2(100711433)
-    print systeme_ordre_deux([[4, 2], [2, 3]], [24, 16])
+    print systeme_ordre_deux([[4, 2], [2, 3]], [24, 16])
 __author__ = "Cedric Bonhomme"
 __version__ = "$Revision: 1.0 $"
 __date__ = "$Date: 2009/01/27 $"
-__copyright__ = "Copyright (c) 2009-2010 Cedric Bonhomme"
+__copyright__ = "Copyright (c) 2009-2013 Cedric Bonhomme"
 __license__ = "GPL v3"
 
 import utils
     #print decrypt(cry, key)
 
 
-    print decrypt(encrypt("BONJOUR COMMENT ALLEZ VOUS ?", "SALUT"), "SALUT")
+    print decrypt(encrypt("BONJOUR COMMENT ALLEZ VOUS ?", "SALUT"), "SALUT")