Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void encryptText ()
- {
- tempInput = inputHere + inputeHere;
- Squareroot = Mathf.RoundToInt (Mathf.Sqrt (inputHere.Length));
- string encryptedtxt = "";
- for (int i =0; i<Squareroot; i++) {
- for (int j=0; j<Squareroot*Squareroot; j+=Squareroot) {
- encryptedtxt += tempInput.Substring (j + i, 1);
- Debug.Log (i + "," + (j + i).ToString ());
- }
- }
- outputHere = encryptedtxt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement