Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string guid = Guid.NewGuid().ToString();
- string content = DateTime.Now.ToString();
- string encryptedContent = Cryptography.EncryptRijndael(content, guid);
- Request Request = new Request
- {
- Password = encryptedContent,
- requestNumber = 0,
- UserName = "",
- MAC = Encoding.Default.GetBytes(Cryptography.EncryptRSA("Token=" + guid + ";" +
- "Hash=" + System.Convert.ToBase64String(Encoding.Default.GetBytes(Cryptography.GetSHA256Hash(content))),
- ClientPublicKey, 4096)),
- version = "",
- customerCode = 3312
- };
Add Comment
Please, Sign In to add comment