-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3.8 AttributeError: module 'time' has no attribute 'clock' #27
Comments
Looks like this project is maybe dead? I am seeing the same problem. |
Same here. Python 3.8.5 |
I ended-up writing my own using Fernet, you can find it here, works as a library or from command line: https://github.com/DykemaBill/redirector/blob/master/redirectorencryptpass.py |
Hello @DykemaBill @thatchriseckert, you might consider using All the symmetric ciphers support writing into file and file-like objects, which means, you don't have to write a separate function to perform a file or file-buffer encryption/decryption. Hopefully, this saves a lot of time for the developer. This module also brings enhancements and additions by improving AES-EAX support for |
Hi evryone! root@NetworkAutomation-1:~# python3 encrypt_device_info.py Input CSV filename (device-creds) : ----- device_creds --------------------------------------------------- Output encrypted filename (encrypted-device-creds): The is any advice on how to fix it? I guess there is a library issue, but not sure |
Ok, Already fixed! |
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/simplecrypt/__init__.py", line 42, in encrypt salt = bytes(_random_bytes(SALT_LEN[LATEST]//8)) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/simplecrypt/__init__.py", line 137, in _random_bytes return _hide(bytearray(getrandbits(8) for _ in range(n))) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/simplecrypt/__init__.py", line 137, in <genexpr> return _hide(bytearray(getrandbits(8) for _ in range(n))) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Crypto/Random/random.py", line 51, in getrandbits return mask & bytes_to_long(self._randfunc(ceil_div(k, 8))) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read return self._singleton.read(bytes) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 178, in read return _UserFriendlyRNG.read(self, bytes) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 129, in read self._ec.collect() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 77, in collect t = time.clock() AttributeError: module 'time' has no attribute 'clock'
The text was updated successfully, but these errors were encountered: