Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
QuestionHow to fill a selected column from a table to Datagridview Pin
mwith31-Dec-06 20:44
mwith31-Dec-06 20:44 
QuestionLogin to server from code Pin
M.kh31-Dec-06 20:40
M.kh31-Dec-06 20:40 
QuestionReference book recommendations Pin
Glen Harvy31-Dec-06 17:28
Glen Harvy31-Dec-06 17:28 
AnswerRe: Reference book recommendations Pin
Colin Angus Mackay31-Dec-06 18:55
Colin Angus Mackay31-Dec-06 18:55 
QuestionSimple encyption/keys question - please pelase help :) Pin
Cormac M Redmond31-Dec-06 10:43
Cormac M Redmond31-Dec-06 10:43 
AnswerRe: Simple encyption/keys question - please pelase help :) Pin
Colin Angus Mackay31-Dec-06 16:27
Colin Angus Mackay31-Dec-06 16:27 
GeneralRe: Simple encyption/keys question - please pelase help :) [modified] Pin
Cormac M Redmond31-Dec-06 17:56
Cormac M Redmond31-Dec-06 17:56 
GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Colin Angus Mackay31-Dec-06 18:44
Colin Angus Mackay31-Dec-06 18:44 
Cormac M Redmond wrote:
Therefore, when creating the salts and populating the database, there would be checks that none of them are the same, thus there never being similar hash values?


If you use a GUID as a salt value you are virtually guaranteed uniqueness. You'd have to generate billions-upon-billions of GUIDs before you'd get a collision - in fact the number is closer to 2.5 * 1038 (250 undecillion) - If you had all the PCs in the world cranking out GUIDs constantly it would still take a heck of a long time.

You can also use something simpler. Like the primary key of the row in the database - since a primary key is guaranteed to be unique it could be a good candidate.

Typically, I just use a random number generator to generate a random sequence of bytes.


Cormac M Redmond wrote:
Also, could you recommend a suitable public/private key encrpytion algorithm? RSA...Diffie-Hellman?


You may want to take a look at this entry on Wikipedia[^]. It will help you choose an algorithm that is suitable. From this point you make also find other useful information about cryptography.

One thing to remember about public/private key cryptography is that they are computationally expensive when compared to symmetric encryption - so they are only ever used to encrypt small pieces of data, often they are used to encrypt symmetric keys.


Upcoming Scottish Developers events:
* Glasgow: Tell us what you want to see in 2007


My: Website | Blog | Photos

GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Nader Elshehabi1-Jan-07 1:29
Nader Elshehabi1-Jan-07 1:29 
GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Cormac M Redmond1-Jan-07 1:48
Cormac M Redmond1-Jan-07 1:48 
GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Nader Elshehabi1-Jan-07 2:01
Nader Elshehabi1-Jan-07 2:01 
GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Cormac M Redmond1-Jan-07 2:35
Cormac M Redmond1-Jan-07 2:35 
GeneralRe: Simple encyption/keys question - please pelase help :) Pin
Colin Angus Mackay1-Jan-07 4:28
Colin Angus Mackay1-Jan-07 4:28 
QuestionStore a COMPOTISE pattern in MS Access? Pin
[DK]KiloDunse31-Dec-06 7:13
[DK]KiloDunse31-Dec-06 7:13 
AnswerRe: Store a COMPOTISE pattern in MS Access? Pin
KevinMac31-Dec-06 7:57
KevinMac31-Dec-06 7:57 
GeneralRe: Store a COMPOTISE pattern in MS Access? Pin
[DK]KiloDunse31-Dec-06 9:47
[DK]KiloDunse31-Dec-06 9:47 
Questionproblem for set RememberMe CheckBox in ASP.net Login Control. Pin
hdv21231-Dec-06 5:53
hdv21231-Dec-06 5:53 
Questionautomate login using httpwebrequest problem Pin
kimo_23eg31-Dec-06 2:27
kimo_23eg31-Dec-06 2:27 
Questionhow to interacting with command prompt ? Pin
hdv21231-Dec-06 1:52
hdv21231-Dec-06 1:52 
AnswerRe: how to interacting with command prompt ? Pin
Dominik Reichl31-Dec-06 2:15
Dominik Reichl31-Dec-06 2:15 
QuestionNetworking issue Pin
snouto30-Dec-06 23:03
snouto30-Dec-06 23:03 
AnswerRe: Networking issue Pin
Eric Georgiades30-Dec-06 23:55
Eric Georgiades30-Dec-06 23:55 
GeneralRe: Networking issue Pin
Luc Pattyn31-Dec-06 1:28
sitebuilderLuc Pattyn31-Dec-06 1:28 
QuestionHow to Connect SFTP using C# ? Pin
sireesh babu30-Dec-06 22:02
sireesh babu30-Dec-06 22:02 
QuestionListview - deleting checked items. Pin
Glen Harvy30-Dec-06 20:59
Glen Harvy30-Dec-06 20:59 

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.