Re: encryption question




"Henrick Hellström" <henrick@xxxxxxxxxxxx> wrote in message
That might be an extremely bad idea if not done correctly:

Setup:
1. Select password P
2. Store H = Hash(P)
3. Store C = E(Hash(P),T)

Decryption
1. User inputs P'
2. If H <> Hash(P') return Error
3. Return T = E(Hash(P),C)

The flaw in this scheme ought to be fairly obvious. An attacker who finds
a H,C pair might simply calculate T = E(H,C) and be done with it, without
any information whatsoever about P.

Thanks for the input. I imply from your comment that using the hash function
method will work fine for symmetrical encryption.

Rael


.



Relevant Pages

  • Re: help with my c++ example
    ... One way would be to store all variables and perform the ... test for the lowest number afterwards. ... dynamic array or a standard container but is it really necessary? ... time the user inputs another value and consequently you'll only need two ...
    (comp.lang.cpp)
  • Re: ASCII to binary
    ... Kevin Gounden schrieb: ... > A user inputs B7 ... When the bit is set, store a binary ASCII/ANSI "1", else "0". ... Dirk ...
    (comp.lang.asm.x86)
  • Re: inputing data into dynamic arrays
    ... > Maybe I should try to clarify myself. ... Suppose a user inputs ... > Now I need a function that will read these inputs and store them in an ... > in the array until it's put into the worksheet. ...
    (microsoft.public.excel.programming)
  • storing Outputto filename into a variable
    ... i was wondering if anyone knew how to store the filename a user inputs when they select a new file to output data too? ...
    (microsoft.public.access.macros)