Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static byte[] encryptBytes( ref byte[] bytes)
- {
- int i = 0;
- int maxEncryptLength = bytes.Length < 1024 * 1024 ? bytes.Length : 1024 * 1024;
- while (i++ < maxEncryptLength)
- {
- if (bytes[i] <= 127)
- {
- bytes[i] += 128;
- }
- else
- {
- bytes[i] -= 128;
- }
- }
- return bytes;
- }
Add Comment
Please, Sign In to add comment