duck

duck

Oct 2nd, 2009
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1.  
  2. public string ShiftString(int shift)
  3. {
  4.     string output = "";
  5.     foreach(byte b in System.Text.Encoding.ASCII.GetBytes(originalString))
  6.     {
  7.         output += System.Text.Encoding.ASCII.GetString(b+shift);
  8.     }
  9.     return output;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment