summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. St?vel <sybren@stuvel.eu>2011-08-03 12:36:33 +0200
committerSybren A. St?vel <sybren@stuvel.eu>2011-08-03 12:36:33 +0200
commit23aef04b174b624cc962cf47a211367a382638aa (patch)
treeeafbba829f72f7185b1ea42154e5725de3a6a5d7
parent31ea498e731d85617e0194956f0959772f98f406 (diff)
downloadrsa-23aef04b174b624cc962cf47a211367a382638aa.tar.gz
Removed recrypt command
-rwxr-xr-xrecrypt.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/recrypt.py b/recrypt.py
deleted file mode 100755
index 4bb134a..0000000
--- a/recrypt.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-
-'''Re-encryption demonstration
-
-This little program shows how to re-encrypt crypto from versions older than 2.0.
-Those versions were inherently insecure, and version 2.0 solves those
-insecurities. This did result in a different crypto format, so it's not backward
-compatible. Use this program as a demonstration on how to re-encrypt your
-files/passwords/whatevers into the new format.
-'''
-
-import sys
-import rsa
-from rsa import _version133 as insecure
-
-(pub, priv) = rsa.newkeys(64)
-
-# Construct the encrypted content. You'd typically read an encrypted file or
-# stream here.
-cleartext = 'Give me more cowbell'
-old_crypto = insecure.encrypt(cleartext, pub)
-print 'Old crypto:', old_crypto
-print
-
-# Decrypt and re-encrypt the contents to make it compatible with the new RSA
-# module.
-decrypted = insecure.decrypt(old_crypto, priv)
-new_crypto = rsa.encrypt(decrypted, pub)
-
-print 'New crypto:', new_crypto
-print
-