From 14d1fec3f3d803b283167fca8d0a00e94a436ea4 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 1 Feb 2018 16:45:15 -0600 Subject: [PATCH] started work on data encryption --- onionr/core.py | 2 +- onionr/onionrcrypto.py | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 onionr/onionrcrypto.py diff --git a/onionr/core.py b/onionr/core.py index 0627d365..fd1b56e0 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -1,7 +1,7 @@ ''' Onionr - P2P Microblogging Platform & Social network - Core Onionr library, useful for external programs. Handles peer processing and cryptography. + Core Onionr library, useful for external programs. Handles peer & data processing ''' ''' This program is free software: you can redistribute it and/or modify diff --git a/onionr/onionrcrypto.py b/onionr/onionrcrypto.py new file mode 100644 index 00000000..b3303eab --- /dev/null +++ b/onionr/onionrcrypto.py @@ -0,0 +1,28 @@ +''' + Onionr - P2P Microblogging Platform & Social network + + This file handles Onionr's cryptography. +''' +''' + 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 . +''' +import nacl + +class OnionrCrypto: + def __init__(self): + return + def symmetricPeerEncrypt(self, data, key): + return + def symmetricPeerDecrypt(self, data, key): + return \ No newline at end of file