search

Home  >  Q&A  >  body text

ios - Looking for OC or swift string XOR checksum calculation method

I have a string DCDS,1,0. How do I calculate the result of its XOR checksum? The requirements are: Convert the high and low four digits of hexadecimal into two ASCII characters (0-9, A-F ), high position first, low position last;

For example, "CCZDC,1," the checksum is: 6C

三叔三叔2761 days ago1211

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-24 09:45:06

    You can do it with unicodeScalars

    reply
    0
  • Cancelreply