Commit Graph

145 Commits (825884ef0e4bc316c8dc453891125c0b279139ea)

Author SHA1 Message Date
tuxxy 825884ef0e Add encryption method 2017-09-18 11:28:03 -07:00
tuxxy 4058897d55 Add __init__ method for EncryptingKeypair w/ key generation 2017-09-18 11:26:46 -07:00
tuxxy b5d97a1a57 Add encrypting_keypair file w/ EncryptingKeypair object 2017-09-18 11:20:24 -07:00
tuxxy 19ee10bd73 Add test_keyring with sign and verify tests 2017-09-18 11:06:37 -07:00
tuxxy 2a2468edaa Actually digest the message 2017-09-18 11:06:15 -07:00
tuxxy 79b6f178a8 Add test_verification for test_signing_keypair 2017-09-18 10:55:44 -07:00
tuxxy 5c7bc5f219 Refactor the v, r, and s msgpack loading into their own methods 2017-09-18 10:54:59 -07:00
tuxxy f4cf9090b7 Add test for signing with SigningKeypair 2017-09-18 10:39:36 -07:00
tuxxy 0b714fff5e Add sign/verify methods to KeyRing 2017-09-18 10:32:56 -07:00
tuxxy 76485f7b06 Add sign/verify functions 2017-09-18 10:25:36 -07:00
tuxxy bf08aa5b53 Add SigningKeypair object and add key generation capabilities 2017-09-18 09:59:34 -07:00
tuxxy 2a3b61f1ba Add boilerplate for KeyRing __init__ method 2017-09-18 09:33:23 -07:00
tuxxy bcbf7444e9 Create keyring.py with placeholder KeyRing object 2017-09-18 08:32:44 -07:00
tuxxy 423c5bde16 Create keys package 2017-09-18 08:31:20 -07:00
tuxxy af9c93c6b6 Create keyring package 2017-09-18 08:30:47 -07:00
Michael Egorov 407763919a merge 2017-09-17 00:27:27 -07:00
Michael Egorov e5857f534e Use releases for PRE library rather than the head 2017-09-17 00:25:56 -07:00
Michael Egorov 47e89a2245 Switch serialization format to Python bytes 2017-09-17 00:21:28 -07:00
Michael Egorov 049ced4e32 Make tox installing with --develop 2017-09-16 23:49:58 -07:00
Michael Egorov c17d9773a8 Bugfix for Kademlia dependency: our branch lives only in our repo 2017-09-16 23:40:59 -07:00
Michael Egorov 629e1f1c75 Merge pull request #37 from tuxxy/master
Add EncryptedFile object for local encryption/decryption functions
2017-09-14 10:57:39 -07:00
tuxxy 0bd05e1336 Add open_new and write functions
Add comment and fix PEP8
2017-09-14 10:28:09 -07:00
tuxxy 6d9fdd1655 Add EncryptedFile.close method to write header info to the file_obj 2017-09-13 15:39:07 -07:00
tuxxy 4167ba690d Add _encode_header method to return header w/ metadata ready for writing 2017-09-13 15:35:28 -07:00
tuxxy 728cad790f Add docstring for EncryptedFile.__init__
Fix syntax error
2017-09-13 15:27:56 -07:00
tuxxy ec3b6903c1 Seek to the beginning of the file if reading the header fails 2017-09-13 15:18:38 -07:00
tuxxy 5ea05a0e0e Read header from the end of the file 2017-09-13 15:15:50 -07:00
tuxxy b8890997fe Add more data to the header, and add _update_header method 2017-09-13 15:15:11 -07:00
tuxxy 8c5d76a1de Move EncryptedFile object to storage 2017-09-13 14:14:29 -07:00
tuxxy ddbb6c2acd Add encryptedfile.py that contains a basic file-like object with read capabilities 2017-09-13 14:00:31 -07:00
Michael Egorov 4be389971c Merge pull request #34 from jMyles/network
Nodes remember each other's capabilities
2017-09-13 13:45:18 -07:00
jMyles b6ba561de7 bootstrap now creates a NuCypher node. 2017-09-13 13:35:22 -07:00
jMyles 83d6724f61 Nodes now share a Capability framework for determining how to interact. This includes the ability for a Node to announce itself as seed-only. Fixed #22. 2017-09-13 13:34:40 -07:00
jMyles a032a4ab05 Logic for a node to alert another node that it is seed-only. 2017-09-13 13:34:40 -07:00
jMyles ab6cbaead6 Seed-only Server now (at least seems) to actually refuse to store data. Fixes #23. 2017-09-13 13:34:40 -07:00
Michael Egorov af4ae48089 Merge pull request #35 from tuxxy/master
Handle high level encryption/decryption
2017-09-13 13:21:21 -07:00
jMyles eb3e1eac61 Added appdirs as testing req. 2017-09-12 11:36:18 -07:00
tuxxy e0418db4da Check dec_key length for symmetric key length (32 bytes) 2017-09-12 10:23:07 -07:00
tuxxy 8a35453a8f Refactor and move decrypting code to 'client.decrypt'
Fix syntax error
2017-09-12 10:20:32 -07:00
jMyles 1640ba8615 Added appdirs as testing req. 2017-09-11 17:31:07 -07:00
tuxxy a9eb406d8b Add code to 'Client.encrypt' to generate storage ready data 2017-09-11 15:33:14 -07:00
tuxxy 79d8ed989b Add version number checking in 'Client.open' 2017-09-11 13:43:34 -07:00
tuxxy 4dca27a31e Add code for reading and decrypting a file 2017-09-11 13:37:16 -07:00
tuxxy c60bc89c86 Set mode default in client.open to 'rb' for reading bytes 2017-09-11 13:36:55 -07:00
tuxxy 5b4db3ac94 Return length of msgpack encoded header instead of raw header 2017-09-11 13:14:47 -07:00
tuxxy 3c2fbac129 Add length checking to header tests 2017-09-11 13:07:29 -07:00
tuxxy bafb15fb61 Return header and header length in tuple 2017-09-11 13:03:48 -07:00
tuxxy 6c305d91d9 Check for version number in _build_header 2017-09-11 12:51:24 -07:00
tuxxy 0feb161d7b Add check for num_keys in test_build_header_prealpha 2017-09-11 12:50:36 -07:00
tuxxy de59deb7b1 Add tests for _build_header and _read_header 2017-09-11 12:29:42 -07:00