I'm in a storytelling mood so be prepared for cringe-worthy and dramatic lines
Inspiration
I found the daily challenge for encryption very interesting as I never tried my hand with anything cyber security (unfortunately it's prevalent for a lot of stuff as I'm still pretty new to coding)
What it does
It takes in an input and generates a key with hashing and salt
How I built it
As any beginner does, I googled, 'how to do encryption in python' and there I discovered fernet. I read it's documentation where I discovered using passwords with fernet. I faced a setback. After a while, I threw fernet and pbkdf2 out the window and finally went with pyscrypt which also happens to be more secure than pbkdf2
Challenges we ran into
Reading the documentation for using passwords with fernet, I did not understand anything other than the fact that we were importing libraries and converting the input to bytes.
I went to my awesome guild Python Pros where the kind guild leader and a fellow guildmate helped me understand what hashing and salt is. While I understood them, I also was clueless about how fernet and pbkdf2 was working so I googled for pbkdf2 where I found the scrypt which was said to be more secure as it is resistant to gpu and asic attacks(more googling)
And I was surprisingly able to understand pyscrypt and this project is the result!
Accomplishments that we're proud of and what we learnt
- From not knowing what encryption even means to being able to generate a key
- Finding that encryption is surprisingly very interesting and not as complex as I made it out to be(I thought it would require a lot of brain juice on my part to do basic encryption)
- First time reading documentations for libraries
What's next for Password-encryption
I heard about rsa library from the guild leader which is used for asymmetric key encryption. So I plan to learn it and also try creating a website login page that can use encryption method
Built With
- base64
- os
- pyscrypt
- python
Log in or sign up for Devpost to join the conversation.