I\'ve tried the example from wikipedia: http://en.wikipedia.org/wiki/Longitudinal_redundancy_check
This is the code for lrc (C#):
///
If someone wants to get the LRC char from a string:
public static char CalculateLRC(string toEncode) { byte[] bytes = Encoding.ASCII.GetBytes(toEncode); byte LRC = 0; for (int i = 0; i < bytes.Length; i++) { LRC ^= bytes[i]; } return Convert.ToChar(LRC); }