[Nym3-commit] r460 - trunk/nymbaron

laurent at conuropsis.org laurent at conuropsis.org
Wed Mar 8 20:20:32 CET 2006


Author: laurent
Date: 2006-03-08 20:20:31 +0100 (Wed, 08 Mar 2006)
New Revision: 460

Modified:
   trunk/nymbaron/Crypto.py
Log:
Indentation

Modified: trunk/nymbaron/Crypto.py
===================================================================
--- trunk/nymbaron/Crypto.py	2006-03-08 19:15:57 UTC (rev 459)
+++ trunk/nymbaron/Crypto.py	2006-03-08 19:20:31 UTC (rev 460)
@@ -70,28 +70,28 @@
 if __name__ == '__main__':
     testkeyfile = '/tmp/2048'
     try:
-	f = open(testkeyfile + ".pub", "r")
-	pubasn = f.read()
-	f.close()
-	f = open(testkeyfile + ".sec", "r")
-	secasn = f.read()
-	f.close()
+        f = open(testkeyfile + ".pub", "r")
+        pubasn = f.read()
+        f.close()
+        f = open(testkeyfile + ".sec", "r")
+        secasn = f.read()
+        f.close()
     except:
-	key = _cr.pk_generate(bits = 2048)
-	pubasn = _cr.pk_encode_public_key(key)
-	secasn = _cr.pk_encode_private_key(key)
-	f = open(testkeyfile + ".pub", "w")
-	f.write(pubasn)
-	f.close()
-	f = open(testkeyfile + ".sec", "w")
-	f.write(secasn)
-	f.close()
-	
+        key = _cr.pk_generate(bits = 2048)
+        pubasn = _cr.pk_encode_public_key(key)
+        secasn = _cr.pk_encode_private_key(key)
+        f = open(testkeyfile + ".pub", "w")
+        f.write(pubasn)
+        f.close()
+        f = open(testkeyfile + ".sec", "w")
+        f.write(secasn)
+        f.close()
+        
     data = """I must not fear. Fear is the mind-killer. Fear is the
-	      little-death that brings total obliteration. I will face my fear.
-	      I will permit it to pass over me and through me. And when it has
-	      gone past I will turn the inner eye to see its path. Where the
-	      fear has gone there will be nothing. Only I will remain."""
+              little-death that brings total obliteration. I will face my fear.
+              I will permit it to pass over me and through me. And when it has
+              gone past I will turn the inner eye to see its path. Where the
+              fear has gone there will be nothing. Only I will remain."""
     cipher = nym_encrypt(data, pubasn)
     clear = nym_decrypt(cipher, secasn)
     print clear == data



More information about the Nym3-commit mailing list