Skip to content
Sign upLog in
← Back to Community

Do you think this is a good way to encrypt and decrypt?

Profile icon
VulcanWMHacker

Do you guys think that this is a good way to encrypt and decrypt?
Can it be hacked easily?

Voters
Profile icon
VulcanWM
Comments
hotnewtop
Profile icon
ChaserWinsen

thanks

Profile icon
VulcanWM

how did you find this lmao?

@ChaserWinsen

Profile icon
Coder100

don't ever decrypt. Just use a hash so all you do is encrypt. Very secure, because you don't know how to decrypt!

Profile icon
VulcanWM

what about apps like whatsapp which need to decrypt their messages?
do you know a way to make a hashing function in python?

@Coder100

Profile icon
Coder100

@VulcanWM
hashing function? https://www.pythoncentral.io/hashing-strings-with-python/

Profile icon
VulcanWM

apps like whatsapp use encrypted messages but they need to decode it every time to show the messages a user has sent before, how do they do it there?

@Coder100

Profile icon
AzureDev

All decodable encryptions gets hacked. Hashes don't.
The best bet is add two more constants:

  1. to alternate the 4 expressions
  2. to encode the thing x times, encoding it 1000 times will be significantly harder to crack
Profile icon
VulcanWM

so add a loop so the expressions go more than once?

@AlexDaCoder

Profile icon
VulcanWM

also do you know how hashes work?

@AlexDaCoder

Profile icon
AzureDev

@VulcanWM
yes, hashes are one way and usually involve bitwise operations (bit shifting, like <<< and >>> in js, idk about python) to make it one-way

Profile icon
AzureDev

@VulcanWM
yes

Profile icon
AzureDev

@VulcanWM
when im doing sha-256 hashing, my friend always does it 1000 times