Link to home
Start Free TrialLog in
Avatar of edc
edc

asked on

Repetable encryption values

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.
ASKER CERTIFIED SOLUTION
Avatar of imladris
imladris
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mbmast
mbmast

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.
Avatar of edc

ASKER

@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.