Updated encrypt-to-all
authorBen McGinnes <ben@adversary.org>
Sat, 16 May 2015 18:03:49 +0000 (04:03 +1000)
committerBen McGinnes <ben@adversary.org>
Sat, 16 May 2015 18:03:49 +0000 (04:03 +1000)
commit1c87ecb86ae364b18f69bca726021271fefaa1c1
treeeb42ad45d87a0374437cba415c7f6cc895938749
parent24c738f5bb5c253a17962c62867d6c847250b41e
Updated encrypt-to-all

* Changed plaintext string to byte literal.
* Nested key selection in a try/except statement in case of
  UnicodeEncodeError instances.
* Tested successfully on over 9,000 keys.
lang/py3-pyme/examples/encrypt-to-all.py