Python Forum
trouble writing to file after while loop - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: trouble writing to file after while loop (/thread-1443.html)

Pages: 1 2 3


RE: trouble writing to file after while loop - Skaperen - Jan-09-2017

(Jan-05-2017, 07:41 PM)micseydel Wrote:
(Jan-05-2017, 07:08 AM)Skaperen Wrote: even better is to use one-way encryption.
Do you mean hashing? From what I can tell the whole point of encryption is that it's reversible under the right circumstances.

reversibility is not needed if the only thing you need to do is compare passwords such as testing the password provided as part of the login credentials.  you still need to consider other things like salting.

if you do need to reverse it, then, yes, you do need (very) strong encryption and to carefully handle everything.  maybe PKC, depending on what you are doing.


RE: trouble writing to file after while loop - micseydel - Jan-10-2017

I was not suggesting reversibility was needed. In fact, I was suggesting that because reversibility is not needed, that it should be a hash rather than encryption.