Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:01
professionalChris Losinger24-Jan-03 7:01 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 7:03
DViggiano24-Jan-03 7:03 
GeneralRe: PIN Generation Algorithm Pin
Jamie Hale24-Jan-03 7:18
Jamie Hale24-Jan-03 7:18 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 7:24
DViggiano24-Jan-03 7:24 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:49
professionalChris Losinger24-Jan-03 7:49 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:46
professionalChris Losinger24-Jan-03 7:46 
GeneralRe: PIN Generation Algorithm Pin
Jamie Hale24-Jan-03 7:54
Jamie Hale24-Jan-03 7:54 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 8:01
professionalChris Losinger24-Jan-03 8:01 
Jamie Hale wrote:
I guess what you need is a collision-less hash

you could do this by tracking which PINs have been issued - then check for collisions. if you find one, adjust the input or the hash as necessary until the collision goes away.

if storing PINs is not security-smart, then store hashes of the PINs and check for collisions on the hashes of the PINs. (it start to get ugly trying to figure out how many bits you need to handle all or your input range Smile | :) )

-c





Zzzzz...

GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 8:11
DViggiano24-Jan-03 8:11 
GeneralNon-MFC OLEDB / ADO Class Pin
Anonymous24-Jan-03 6:25
Anonymous24-Jan-03 6:25 
GeneralThread function graceful shutdown Pin
Anonymous24-Jan-03 6:11
Anonymous24-Jan-03 6:11 
GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 6:20
Ted Ferenc24-Jan-03 6:20 
GeneralRe: Thread function graceful shutdown Pin
Anonymous24-Jan-03 7:21
Anonymous24-Jan-03 7:21 
GeneralRe: Thread function graceful shutdown Pin
John M. Drescher24-Jan-03 7:34
John M. Drescher24-Jan-03 7:34 
GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 7:43
Ted Ferenc24-Jan-03 7:43 
GeneralSmart ComboBox Pin
ns24-Jan-03 5:57
ns24-Jan-03 5:57 
GeneralRe: Smart ComboBox Pin
Ben Burnett24-Jan-03 17:31
Ben Burnett24-Jan-03 17:31 
GeneralRe: Smart ComboBox...THanks! Pin
ns27-Jan-03 4:35
ns27-Jan-03 4:35 
GeneralConfused Help!!!! Pin
nlecren24-Jan-03 5:25
nlecren24-Jan-03 5:25 
Generalcombobox in toolbar question HELP!!! Pin
ns24-Jan-03 4:43
ns24-Jan-03 4:43 
GeneralRe: combobox in toolbar question HELP!!! Pin
Gary Kirkham24-Jan-03 4:47
Gary Kirkham24-Jan-03 4:47 
GeneralRe: combobox in toolbar question HELP!!! Pin
HENDRIK R24-Jan-03 4:53
HENDRIK R24-Jan-03 4:53 
GeneralRe: combobox in toolbar question HELP!!! Pin
ns24-Jan-03 5:04
ns24-Jan-03 5:04 
Generalmap .clear() question Pin
ns24-Jan-03 3:50
ns24-Jan-03 3:50 
GeneralRe: map .clear() question Pin
ns24-Jan-03 4:02
ns24-Jan-03 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.