Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. void encryptText ()
  2. {
  3.     tempInput = inputHere + inputeHere;
  4.     Squareroot = Mathf.RoundToInt (Mathf.Sqrt (inputHere.Length));
  5.     string encryptedtxt = "";
  6.     for (int i =0; i<Squareroot; i++) {
  7.         for (int j=0; j<Squareroot*Squareroot; j+=Squareroot) {
  8.             encryptedtxt += tempInput.Substring (j + i, 1);
  9.             Debug.Log (i + "," + (j + i).ToString ());
  10.         }
  11.     }
  12.     outputHere = encryptedtxt;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement