Guest User

Untitled

a guest
Feb 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. string guid = Guid.NewGuid().ToString();
  2. string content = DateTime.Now.ToString();
  3. string encryptedContent = Cryptography.EncryptRijndael(content, guid);
  4. Request Request = new Request
  5. {
  6. Password = encryptedContent,
  7. requestNumber = 0,
  8. UserName = "",
  9. MAC = Encoding.Default.GetBytes(Cryptography.EncryptRSA("Token=" + guid + ";" +
  10. "Hash=" + System.Convert.ToBase64String(Encoding.Default.GetBytes(Cryptography.GetSHA256Hash(content))),
  11. ClientPublicKey, 4096)),
  12. version = "",
  13. customerCode = 3312
  14. };
Add Comment
Please, Sign In to add comment