software development engineer interview questions shared by candidates
difference between "hashing a string" and "encrypting a string". Then: is it possible to find two elements for which the hash is the same?
you can't "go back" from a hash. You can go back from encription if you know the secret (say password, private key, whatever). Second question: yes but then you have a problem.
1. Encryption uses a secret key while hashing does not require any key. Moreover, hash is one-way but encryption can be reversed by a decryption operation. 2. Yes, that's called hash collision, which although a low probability occurrence, does exist.
Decryption of encrypted string is possible. But we cannot say same thing for hashing. Because hash is one way operation. Q2:Low probability, it is possible using brute force
See Interview Questions for Similar Jobs
- Software Engineer
- Senior Software Engineer
- Software Developer
- Senior Software Development Engineer
- Senior Software Developer
- Software Engineer II
- Senior Consultant
- Data Analyst
- Project Manager
- Customer Service Representative