Difference(); #4
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the data security field, encryption and hashing are commonly compared, but why is this the case. Encryption is a two-way function where data is passed in as plaintext and comes out as ciphertext, which is unreadable. Since encryption is two-way, the data can be decrypted so it is readable again. Hashing, on the other hand, is one-way, meaning the plaintext is scrambled into a unique digest, through the use of salt, that cannot be decrypted. Technically, hashing can be reversed, but the computational power needed to decrypt it makes decryption infeasible. The way hashing works is with a hashing algorithm. This algorithm is most effective when it collision-resistant. Collision resistance means that all the digests are unique and do not overlap with each other. This means that the hashing algorithm must be complex enough to not have overlapping hashes, but not so complex as to take too long to compute hashes. Encryption comes in two different types, and both encryption and hashing have several common types of algorithms. Common Encryption and Hashing Algorithms Symmetric Encryption Algorithms: Advanced Encryption Standard (AES) Elliptic Curve Digital Signature Algorithm (ECDSA) Message-Digest Algorithm (MD5) Hashing and Encryption Use Cases Encryption, on the other hand, tends to be used for encrypting data that is in transit. Data being transmitted is data that needs to be read by the recipient only, thus it must be sent so that an attacker cannot read it. Encryption hides the data from anyone taking it in the middle of transit and allows only the decryption key owner to read the data. Other times encryption would be used over hashing for storing and retrieving data in databases, authentication methods, and other cases where data must be hidden at rest, but retrieved later. |
Beta Was this translation helpful? Give feedback.
In the data security field, encryption and hashing are commonly compared, but why is this the case. Encryption is a two-way function where data is passed in as plaintext and comes out as ciphertext, which is unreadable. Since encryption is two-way, the data can be decrypted so it is readable again. Hashing, on the other hand, is one-way, meaning the plaintext is scrambled into a unique digest, through the use of salt, that cannot be decrypted. Technically, hashing can be reversed, but the computational power needed to decrypt it makes decryption infeasible.
The way hashing works is with a hashing algorithm. This algorithm is most effective when it collision-resistant. Collision resistance…