storj-archived / storj-python-sdk

Deprecated. A Python SDK for the Storj API.
https://storj.io
MIT License
23 stars 19 forks source link

from core.lib.utils migrate simpleDecrypt and simpleEncrypt of data f… #69

Closed BlackDuck888 closed 7 years ago

BlackDuck888 commented 7 years ago

…or id_ecdsa

steenzout commented 7 years ago
__________________________ PEP8-check(ignoring W503) ___________________________
[gw0] linux2 -- Python 2.7.9 /home/travis/build/Storj/storj-python-sdk/.tox/py27/bin/python2.7
/home/travis/build/Storj/storj-python-sdk/storj/model.py:265:38: E261 at least two spaces before inline comment
        padding = 16 - len(data) % 16#
                                     ^
/home/travis/build/Storj/storj-python-sdk/storj/model.py:271:45: E226 missing whitespace around arithmetic operator
    def decrypt_node(self, hex_data, key='0'*32, iv='0'*16):
                                            ^
/home/travis/build/Storj/storj-python-sdk/storj/model.py:271:56: E226 missing whitespace around arithmetic operator
    def decrypt_node(self, hex_data, key='0'*32, iv='0'*16):
                                                       ^
/home/travis/build/Storj/storj-python-sdk/storj/model.py:276:41: E226 missing whitespace around arithmetic operator
    def encrypt_node(self, data, key='0'*32, iv='0'*16):
                                        ^
/home/travis/build/Storj/storj-python-sdk/storj/model.py:276:52: E226 missing whitespace around arithmetic operator
    def encrypt_node(self, data, key='0'*32, iv='0'*16):
BlackDuck888 commented 7 years ago

i hope i got it now

steenzout commented 7 years ago

@BlackDuck888 you can test on your workstation by using tox. ;)

BlackDuck888 commented 7 years ago

i will try it next time, step by step, so many new things, right now i am fighting with GitHub.

BlackDuck888 commented 7 years ago

i close this pr, and will start from scratch, this will help me to understand how everything ist working