Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static string FuncS(string text, string password)
- {
- string s = "";
- for (int i = 0; i < text.Length; i++)
- {
- int Count = 0;
- s += (char)(text[i] ^ password[Count]);
- Count++;
- if (Count == password.Length) Count = 0;
- }
- return s;
- }
- static string Func(string text,string password)
- {
- StringBuilder sb = new StringBuilder(text);
- for(int i = 0; i < sb.Length; i++)
- {
- int Count = 0;
- sb[i] = (char)(sb[i] ^ password[Count]);
- Count++;
- if (Count == password.Length) Count = 0;
- }
- return sb.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement