Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. // Send iv...
  3. Console.Write("Sending iv... ");
  4. byte[] encryptedIV = rsaServer.Encrypt(tripleDES.IV, true);
  5. msg = protocol.Make(ProtocolSICmdType.ASSYM_CIPHER_DATA, encryptedIV);
  6. netStream.Write(msg, 0, msg.Length);
  7. Console.WriteLine("ok.");
  8. Console.WriteLine("IV: " + ProtocolSI.ToHexString(tripleDES.IV));
  9. Console.WriteLine("Encrypted IV: " + ProtocolSI.ToHexString(encryptedIV));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement