Esempio n. 1
0
 public string EncryptLine(string strLine)
 {
     if (strLine == null) return string.Empty;
       if (strLine.Length == 0) return string.Empty;
       CRCTool crc = new CRCTool();
       crc.Init(CRCTool.CRCCode.CRC32);
       ulong dwcrc = crc.calc(strLine);
       string strRet = String.Format("{0}", dwcrc);
       return strRet;
 }
Esempio n. 2
0
    public string EncryptLine(string strLine)
    {
      if (string.IsNullOrEmpty(strLine))
        return string.Empty;

      if (String.Compare("unknown", strLine, true) == 0) return string.Empty;
      CRCTool crc = new CRCTool();
      crc.Init(CRCTool.CRCCode.CRC32);
      ulong dwcrc = crc.calc(strLine);
      string strRet = String.Format("{0}", dwcrc);
      return strRet;
    }