lab002

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

README

hex

注意

编码后的长度

字符串编码到hex之后,长度会变成2倍。这是固定的。

注意:在线编码工具的结果和我们程序的结果多了两位,这是在线的这个工具编码的时候自动加了一个空格, 我们点解码之后可以看到原来的字符串多了一个空格。

运行结果

Imgur

参考资料

  1. https://golang.org/pkg/encoding/hex/
  2. http://www.107000.com/T-Hex/ (在线编码工具)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL