protected byte checksum(string text) { byte checksum = 0; foreach (var c in text) checksum += (byte)c; return checksum; }