Ask coding questions

← Back to all posts
Do you think this is a good way to encrypt and decrypt?
h
VulcanWM

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

Voters
VulcanWM
Comments
hotnewtop
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!

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

Coder100
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

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

VulcanWM

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

VulcanWM

also do you know how hashes work? @AlexDaCoder

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

AzureDev
AzureDev

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