diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-03-27 11:14:18 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-03-27 11:14:18 +0100 |
commit | 75c2677c91ead1f91d71fbfaf09ba554f4b9b894 (patch) | |
tree | 3de6f9d94fa6fce94b487413f2a6e622e1872936 /obnamlib/encryption.py | |
parent | 17c0d9062ce45848571d91bc73b68adb9c1b13bc (diff) | |
download | obnam-75c2677c91ead1f91d71fbfaf09ba554f4b9b894.tar.gz |
Start module for encryption helpers.
Diffstat (limited to 'obnamlib/encryption.py')
-rw-r--r-- | obnamlib/encryption.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py new file mode 100644 index 00000000..1e468fc3 --- /dev/null +++ b/obnamlib/encryption.py @@ -0,0 +1,20 @@ +# Copyright 2011 Lars Wirzenius +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +def generate_symmetric_key(numbits): + '''Generate a random numbits key for symmetric encryption.''' + + |