#๐Ÿ”’ rate my crappy password manager i built in 2 hours

34 messages ยท Page 1 of 1 (latest)

tulip ingot
#

i know i could use list comprehensions but i havent learnt them yet

misty terraceBOT
#

@tulip ingot

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

tulip ingot
static lichen
#

invalid link, did you forget to copy the last character?

tulip ingot
#

oof ye

#

ends with an a

static lichen
#

I do have to ask first: do you aware this shouldn't be use in real life because the password are unprotected with encryption and can be easily visible to other user/application with access to the file system (basically every application in the user space

tulip ingot
#

ye ik

#

idk how to encrypt strings yet

static lichen
#

ok, just make sure you are aware

tulip ingot
#

i wasnt planning on releasing it anywhere

#

maybe if i learn encryption or learn how to store the passwords in a db

static lichen
#

I mean not as release but using it personally

#

i.e. you shouldn't store any of your real password there

tulip ingot
#

i wont dw

#

note: there is an error in i.capitalize which ill fix soon

outer lotus
#

Except exception
Bad, catching any exception is not a good idea, catch InputError or whatever may be raised there;

deletepassword, findpasswords, ..
Not PEP-8 compliant; adding _ -> delete_password increases readability;

On a side note: there is definitely better way to get list of all english letters than just list them as ['a', 'b', ..] :

>>> import string
>>> string.ascii_letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
>>> list(string.ascii_lowercase)
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
static lichen
#

it should have the ability to generate other character in 3 states
1 NONE -> Would not generate
2 MAYBE -> Could generate
3 MUST -> Must generate and regenerate password if the password doesn't contain

and this should apply to capital letter, number and special character seperately

tulip ingot
static lichen
#

Exception:
line 19: ValueError instead
line 40: Current: ValueError, would not error if no conversion of integer is used (which from the code, is not necessary)
line 56: No error
line 68: No error
line 82: No error
line 92: Current: ValueError, would not error if no conversion of integer is used (which from the code, is not necessary)

static lichen
static lichen
tulip ingot
#

im trying to add capital letters and istead of typing out the whole uppercase list im doinga for loop

#

which isnt working

static lichen
#

?

misty terraceBOT
#

:white_check_mark: Your 3.12 eval job has completed with return code 0.

['a', 'b', 'c', 'd', 'e', 'f', 'g', 'i', 'j', 'k', 'l', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
tulip ingot
#

omg

#

im so dumb

#

wait it still doesnt work

misty terraceBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.