Python Forum
Password Saver Project
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Saver Project
#13
(Oct-12-2017, 07:16 AM)gruntfutuk Wrote: Did you follow the advice given in the video I posted a link to?

Whilst it is good to have Pycharm tidy up, it cannot know what you intended and can leave things at the wrong level of indentation.

I looked at the video and I get the indentation a bit better but i'm still lost. But I still don't know if my first 2 steps of the code for choice 2 are correct here's what I currently have without any indentation errors

for i in range (len(passwords)):
            if passwordToLookup in passwords [i][0]:
                encryptionKey=-16
                def passwordunEncrypt (encryptedMessage, key):


                       unencryptedMessage = ''


                       for symbol in encryptedMessage:
                           if symbol.isalpha():
                               num = ord(symbol)
                               num -= key

                           if symbol.isupper():
                               if num > ord('Z'):

                                   num -= 26
                               elif num < ord('A'):
                                   num += 26
                               elif symbol.islower():
                                   if num > ord('z'):

                                       num -= 26
                               elif num < ord('a'):
                                   num += 26

                           unencryptedMessage += chr(num)
                       else:
                            unencryptedMessage += symbol

                       return unencryptedMessage
                       print(unencryptedMessage)
if the above steps are correct then i'm supposed to add the code for encryption (which is given) and turn in into decryption i'm told to decrypt is the exact reverse operation of encryption. I tried to turn every occurence of "encrypt" into "unencrypt" but when I run the code it doesnt return a decrypted password
Reply


Messages In This Thread
Password Saver Project - by jhenry - Oct-10-2017, 09:27 PM
RE: Password Saver Project - by sparkz_alot - Oct-10-2017, 09:51 PM
RE: Password Saver Project - by jhenry - Oct-10-2017, 10:08 PM
RE: Password Saver Project - by sparkz_alot - Oct-10-2017, 10:26 PM
RE: Password Saver Project - by gruntfutuk - Oct-11-2017, 09:46 AM
RE: Password Saver Project - by jhenry - Oct-11-2017, 09:55 AM
RE: Password Saver Project - by gruntfutuk - Oct-11-2017, 10:28 AM
RE: Password Saver Project - by buran - Oct-11-2017, 10:33 AM
RE: Password Saver Project - by gruntfutuk - Oct-11-2017, 10:42 AM
RE: Password Saver Project - by sparkz_alot - Oct-11-2017, 12:31 PM
RE: Password Saver Project - by jhenry - Oct-12-2017, 06:38 AM
RE: Password Saver Project - by gruntfutuk - Oct-12-2017, 07:16 AM
RE: Password Saver Project - by jhenry - Oct-13-2017, 07:22 AM
RE: Password Saver Project - by gruntfutuk - Oct-13-2017, 07:35 AM
RE: Password Saver Project - by jhenry - Oct-13-2017, 08:15 AM
RE: Password Saver Project - by gruntfutuk - Oct-13-2017, 08:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python project help (Password manger using mysql) lifeofpy 2 4,882 Jul-31-2020, 06:18 PM
Last Post: deanhystad
  Python Password Saver Assignment sshellzr21 2 6,348 May-02-2020, 01:34 AM
Last Post: sshellzr21
  Password Saver Program suitec 3 9,101 Aug-17-2017, 12:26 AM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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