Amazon Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

May be Encryption will have a reverse algorithm for decryption and to get back the original value.
With hashing, its not possible to get the original value from the hash output.

- Thiyanesh January 22, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

hash table is a kind of data structure, but the encryption is a way to manipulate the data.

- nevermind September 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Hashing is one way process used to secure things like passwords etc.

2. Encryption is reversible process to encrypt original content and then decrypt it back again using keys.

A good analogy I read on Stack Overflow (bad I cannot post actual link, //stackoverflow/questions/4948322/fundamental-difference-between-hashing-and-encryption-algorithms)

A hash function could be considered the same as baking a loaf of bread. You start out with inputs (flour, water, yeast, etc...) and after applying the hash function (mixing + baking), you end up with an output: a loaf of bread.

Encryption, on the other hand, could be viewed as a safe deposit box. Whatever you put in there comes back out, as long as you possess the key with which it was locked up in the first place. It's a symmetric operation. Given a key and some input, you get a certain output. Given that output, and the same key, you'll get back the original input. It's a 1:1 mapping.

- RV December 19, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Another difference apart from what @RV mentioned -
1) A hash function takes an input and provides a short unique representation of the input. Anyone who has access to the hash function can get the same output for the given input.
However, an encryption function needs a secret key to get the output.

2) The purpose of hashing is to get integrity of data. The purpose of encryption is to get confidentiality.

- buckeyekarun March 03, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More