We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Repetable encryption values

edc asked
Medium Priority
Last Modified: 2012-05-11
Hi everyone,
I am looking for a solution to the following problem...
I have 2 machines each with the same initial string value (aka key).  On each of the systems I want to encrypt the strings on both machines in such a way that after the encryption their values are the same, and to be able to encrypt each of them over and over again with equivelent results on both machines.  

So, I guess my fundamental question is - "given the same plain text starting point, does any specific encryption algorithm encrypt to the same value each time?"

Thanks very much for your help.
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)

I’m not sure what your application is, but you may not necessarily require encryption.  Consider hashing the plain text “key.”  You can use either SHA1/MD5 (or others, but these are the “Golden” standards) algorithms.  If you don’t already know this, hashing allows you to go from KEY to HASH but not backwards, from HASH to KEY.  Like most encryption already mentioned, the same hashing algorithm on n different machines will give the same result given the same clear text input.


@imladris: Thank you for your answer.  I appreciate you sharing your knowledge.

@mbmast: Thank you as well for your answer.  We had originally looked at hashing specifically for that reason, however it left us hanging on a couple of other points that we needed to fulfill.  I appreciate you taking the time to share your knowledge.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.