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

C#

 
AnswerRe: Difference between Delegates & Events ? Pin
J. Dunlap1-Jan-07 4:33
J. Dunlap1-Jan-07 4:33 
Questionread and display from txt file Pin
sunilticku31-Dec-06 22:29
sunilticku31-Dec-06 22:29 
AnswerRe: read and display from txt file Pin
KevinMac1-Jan-07 9:56
KevinMac1-Jan-07 9:56 
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 
Hey.

I am building an application where there will be different 'users', each with a username and password. The application is using a webservice (Amazon S3) which requires a logon also. It is envisaged that a company buys an S3 account, and allows it's users to utilise it through an application. The users can store and delete files on their part of S3. Each user would only have access to their own files, etc. Deciding who's files belongs to who is a different issue.

Anyway, so if, say, Joe logs into the application, his password is checked against a database on a central sever, and upon authentication, the S3 'access ID' and 'secret access ID' is sent to the application, which then uses it to log on S3. The users password would initially be MD5'd, and then sent to the server for authentication. (The database will hold MD5'd passwords).

So my first question is
: What's the best way to get the 'access ID' and 'secret access ID' from a central server, to the user? Obviously, to keep it secret it would need to be encrypted. The application can be ran on any machine, so a key cannot be stored, say, in the registry. I was considering encrypting the S3 access/secret id string with an MD5 of the users password, but that'll be sent over the network too, and itself will be exposed. Please, any ideas greatly appreciated???

Next, then Joe wants to upload files.
I am looking for any suggestions on how to encrypt these files, using a different key for each user. So, for example, a company admin couldnt go onto the S3 service, and look at a users files, without knowing the encryption/decryption key. Again, I was considering using an MD5 of the users password as an encryption/decryption string, but this itself poses the problem whereby a user changes password.

My main problem is how to get a string from the server to any PC, but for it not to be exposed on the network.

Any help in this whole area is much much much appreciated.

Regards,
Cormac Redmond
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 
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 

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.