Re: Encryption Tool Query - Same Input, Different Outputs



Lucanos <lucanos@xxxxxxxxx> wrote in news:1186730099.875537.68860
@q3g2000prf.googlegroups.com:

I am looking for an Encryption methodology, whereby I can encrypt a
string (or content) in such a way that the results it returns can be
different from each other, but when decrypted (using a single key/
method) the original string is returned.

The standard way of achieving this is with a "salt" which is typically a
random number (but needn't be - a timestamp, for instance, would also work)

The salt is used either as a prefix or suffix to "the_string" and the
combined salt plus string is encrypted. With different salts the same
string will result in a different encrypted message.

On decryption the salt is, of course, discarded and only "the_string" is
considered.

Regards,

.



Relevant Pages

  • Re: Please Help - Encryption Problems
    ... Creating a Salt Value ... public static string CreatePasswordHash ... return hashedPwd; ... >> Dim PwdAs String = Trim ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Please Help - Encryption Problems
    ... Creating a Salt Value ... public static string CreatePasswordHash ... return hashedPwd; ... >> Dim PwdAs String = Trim ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Strange PasswordRecovery behavior?
    ... "EncryptMe" ... The password salt is used to further protect the password from attaching by ... using a random string to prefix the password before hashing it: ... #Security Briefs: Hashing Passwords, The AllowPartiallyTrustedCallers ...
    (microsoft.public.dotnet.general)
  • Re: kadmin ktadd -e keysaltlist for des-cbc-md5
    ... I've often wished the mit code had a way to spit these strings out. ... In MIT, key salt pair parsing is done in krb5_string_to_keysalts, ... Since - can be either embedded inside an enctype string or separate the enc ... and salt types, things get very interesting in the code (and error reporting ...
    (comp.protocols.kerberos)
  • Re: Advice wanted for storing passwords in a database
    ... MD5 does not allow a separate 'salt' or 'key' to be input, just the string ... It is customisable in that you can alter the encryption algorithm ...
    (comp.lang.php)