Isis Lovecruft
0bc97dd48b
Move _copy_data(), _write_passphrase(), and _threaded_copy_data() to util.
2013-04-17 22:47:13 +00:00
Isis Lovecruft
0394034236
Add key generation utility functions.
...
* Add util._make_passphrase() for creating a random string passphrase and
optionally writing it to a file only readable by the real uid of the
running process.
* Change the util._today() function to _next_year(), which gives us today's
date a year from now, for setting the default expire date in
GPG.gen_key_input().
2013-04-17 20:58:49 +00:00
Isis Lovecruft
8dcf49fa95
Catch OSErrors and IOErrors also in util._is_file if input does not exist.
2013-04-17 00:10:52 +00:00
Isis Lovecruft
07310a860e
Move _make_binary_stream() to util module and update unittests.
2013-04-15 01:42:55 +00:00
Isis Lovecruft
2e6d34385b
Add checks to utils.py, update docstrings.
...
* Add _create_gpghome()
* Add _is_file()
* Add _is_stream()
* Add _is_list_or_tuple()
* Add _today()
* Add _which()
* Update docstrings for methods in ListPackets.
2013-04-15 00:33:17 +00:00
Isis Lovecruft
425ca28a48
Update docstring for ListPackets class.
2013-04-15 00:31:21 +00:00
Isis Lovecruft
a92490af2e
Remove checks from gnupg.py and add utility functions to util.py.
...
* Remove _has_readwrite()
* Remove _is_file()
* Remove _is_stream()
* Remove _is_sequence()
* Add _create_gpghome()
* Add _find_gpgbinary()
2013-04-15 00:28:22 +00:00
Isis Lovecruft
4cf1c698c1
Fix import statements in gnupg.py and util.py.
2013-04-15 00:22:41 +00:00
Isis Lovecruft
d97ae0b356
Relayout module structure.
2013-04-11 23:45:22 +00:00