blockchain - ruby - string to hex to ascii , pack(H*), unpack(H*)

访问量: 163

ruby可以进行转换:

https://stackoverflow.com/questions/22957688/convert-string-with-hex-ascii-codes-to-characters

"a".unpack "H*"   # => ["61"]

["61"].pack "H*"  # => "a"

参考:http://facweb.cs.depaul.edu/sjost/it212/documents/ascii-pr.htm

下面是ASCII的对应表:

订阅/RSS Feed

Subscribe

分类/category