A
A
Anton2016-05-20 00:31:08
OpenSSL
Anton, 2016-05-20 00:31:08

Is it correct to encrypt passwords this way?

This example has both Encryption and Decryption. If everything is clear with the first, then there are questions about the second.
It's just the first time I've come across the fact that when encrypting a password, there is a reverse move.
How safe is this, or does it not affect safety in the presence of good salt?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-05-20
@hummingbird

Agree with evnuh . You really don't understand hashing and encryption.
Hashing implies an algorithm in only one direction. If you hashed something, that's it. Passwords are usually hashed. Due to the fact that the hash is a one-way algorithm, it can be cracked by brute force, for example. But there is such a problem as a collision .
Encryption is a bi-directional algorithm. There are various algorithms (public key, private key, etc.). The essence of encryption is to perform a transformation on the text using a key and only the user for whom this message is intended can decrypt it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question