Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string textToEncrypt = "هنا تضع نص السرفر";
- string encryptedText = "";
- foreach (int x in textToEncrypt)
- {
- if (x == 128)
- {
- encryptedText = encryptedText + Convert.ToChar(x); // \x00
- continue;
- }
- int y = (x + 128) % 256;
- encryptedText = encryptedText + Convert.ToChar(y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement