Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: TopMost Window Pin
Careth Jefferson17-Jan-06 19:08
Careth Jefferson17-Jan-06 19:08 
GeneralRe: TopMost Window Pin
Christian Graus18-Jan-06 8:54
protectorChristian Graus18-Jan-06 8:54 
AnswerRe: TopMost Window Pin
DigitalKing17-Jan-06 14:18
DigitalKing17-Jan-06 14:18 
Questionhey guys check this out Pin
abstarsss17-Jan-06 13:30
abstarsss17-Jan-06 13:30 
AnswerRe: hey guys check this out Pin
Christian Graus17-Jan-06 14:15
protectorChristian Graus17-Jan-06 14:15 
QuestionTripleDES encryption. Anyone want to help? Pin
jbergetun17-Jan-06 12:31
jbergetun17-Jan-06 12:31 
AnswerRe: TripleDES encryption. Anyone want to help? Pin
Colin Angus Mackay17-Jan-06 23:03
Colin Angus Mackay17-Jan-06 23:03 
GeneralRe: TripleDES encryption. Anyone want to help? Pin
jbergetun18-Jan-06 7:48
jbergetun18-Jan-06 7:48 
Thanks, this helped me.

I think my problem is that the protocol isnt very well documented becuase it doesnt say anything on how to generate the iv and how i should tell the server witch IV i used to decrypt the message.

If i encrypt a message with these keys on the client side:
DES KEY: byte[] localDesKey = {01,02,03,04,05,06,07,08,09,10,11,12,13,14};
Randomly generated IV : byte[] myIV = {02,02,03,12};

The server allready know the DES key but would also need the IV to decrypt the message. Am I right ?

The protocol documentation doesnt say anything about how I should tell the server what IV i used.

This is what the protocol documentation is telling me .

<protocol.txt>
Uses encrypted tcp connections to communicate with its cardservers,
for every card a dedicated tcp connection is used.The encryption used is
Triple-DES in outer cipher block chaining mode (CBC)

After opening a TCP connection to the server, the client first receives 14
random bytes. These bytes are to be XORed to the Triple-DES key from the config
file. (.). The result forms the
Triple DES key to be used to send Username and Password to the server, I
call it the login key.

Next the client has to send a packet with cmd = MSG_CLIENT_2_SERVER_LOGIN
including username and password in the data field.
The username is sent as a C-String (NULL terminated), the password
follows directly after the zero termination byte of the username. The
password has to be put through the glibc crypt() function, using salt
$1$abcdefgh$. The password in the data field has to be NULL terminated and the
packet encrypted with the login key.

GeneralRe: TripleDES encryption. Anyone want to help? Pin
Colin Angus Mackay18-Jan-06 11:39
Colin Angus Mackay18-Jan-06 11:39 
GeneralRe: TripleDES encryption. Anyone want to help? Pin
jbergetun19-Jan-06 10:21
jbergetun19-Jan-06 10:21 
QuestionWaiting for Event to fire Pin
Bralyan17-Jan-06 12:29
Bralyan17-Jan-06 12:29 
Questioncalculating fraction in c# Pin
two_man_only17-Jan-06 12:02
two_man_only17-Jan-06 12:02 
AnswerRe: calculating fraction in c# Pin
Christian Graus17-Jan-06 14:03
protectorChristian Graus17-Jan-06 14:03 
GeneralRe: calculating fraction in c# Pin
two_man_only24-Jan-06 12:02
two_man_only24-Jan-06 12:02 
GeneralRe: calculating fraction in c# Pin
Christian Graus24-Jan-06 12:04
protectorChristian Graus24-Jan-06 12:04 
GeneralRe: calculating fraction in c# Pin
two_man_only25-Jan-06 1:11
two_man_only25-Jan-06 1:11 
QuestionGracefully shutting down threads Pin
User 665817-Jan-06 11:44
User 665817-Jan-06 11:44 
AnswerRe: Gracefully shutting down threads Pin
CWIZO17-Jan-06 21:15
CWIZO17-Jan-06 21:15 
GeneralRe: Gracefully shutting down threads Pin
User 665818-Jan-06 2:12
User 665818-Jan-06 2:12 
GeneralRe: Gracefully shutting down threads Pin
CWIZO18-Jan-06 3:01
CWIZO18-Jan-06 3:01 
QuestionVS 2005 UK edition Pin
pieterman17-Jan-06 11:44
pieterman17-Jan-06 11:44 
AnswerRe: VS 2005 UK edition Pin
Christian Graus17-Jan-06 14:03
protectorChristian Graus17-Jan-06 14:03 
GeneralRe: VS 2005 UK edition Pin
pieterman18-Jan-06 7:03
pieterman18-Jan-06 7:03 
QuestionTry/Catch Variable Scoping Pin
RobertF5717-Jan-06 11:34
RobertF5717-Jan-06 11:34 
AnswerRe: Try/Catch Variable Scoping Pin
Guffa17-Jan-06 11:50
Guffa17-Jan-06 11:50 

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.