Python Forum
trouble writing to file after while loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trouble writing to file after while loop
#21
(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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#22
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Writing string to file results in one character per line RB76SFJPsJJDu3bMnwYM 4 1,388 Sep-27-2022, 01:38 PM
Last Post: buran
  Writing to json file ebolisa 1 1,016 Jul-17-2022, 04:51 PM
Last Post: deanhystad
  Writing to External File DaveG 9 2,516 Mar-30-2022, 06:25 AM
Last Post: bowlofred
Question Having trouble writing an Enum with a custom __new__ method stevendaprano 3 4,170 Feb-13-2022, 06:37 AM
Last Post: deanhystad
  Writing to file ends incorrectly project_science 4 2,705 Jan-06-2021, 06:39 PM
Last Post: bowlofred
  Writing unit test results into a text file ateestructural 3 4,775 Nov-15-2020, 05:41 PM
Last Post: ateestructural
  Writing to file in a specific folder evapa8f 5 3,448 Nov-13-2020, 10:10 PM
Last Post: deanhystad
  Trouble with reading csv file and putting it into a file Milfredo 3 2,278 Sep-04-2020, 05:30 AM
Last Post: Milfredo
  Failure in writing binary text to file Gigux 7 3,829 Jul-04-2020, 08:41 AM
Last Post: Gigux
  writing data to a csv-file apollo 1 2,382 Jul-03-2020, 02:28 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020