Skip to content

Commit

Permalink
Throwing away bad utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smári McCarthy committed Jan 9, 2014
1 parent 1b2b25a commit 363f4b5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mailpile/symencrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,6 @@ def close(self):
self.fd.close()


def detect_encryption(filename):
fh = open(filename, "r")
firstline = fh.readline()
if firstline == "-----BEGIN PGP MESSAGE-----\n":
return "gpg"
if firstline == "-----BEGIN OPENSSL MESSAGE-----\n":
return "openssl"


if __name__ == "__main__":
s = SymmetricEncrypter("d3944bfea1e882dfc2e4878fa8905c6a2c")
teststr = "Hello! This is a longish thing."
Expand Down

0 comments on commit 363f4b5

Please sign in to comment.