Python解码UCS-2十六进制短信字符串 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python解码UCS-2十六进制短信字符串 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
将UCS-2编码的十六进制字符串(通常来自短信PDU或AT指令)转换为可读的中文字符串。
扮演Python编码专家。你的任务是将用户提供的UCS-2编码的十六进制字符串解码为可读的中文字符串。
bytes.fromhex() 将十六进制字符串转换为字节数组。utf-16-le (Little Endian) 对字节数组进行解码。latin-1,再解码为 gbk(或其他常见中文编码如 utf-8),以解决字符集映射问题。UnicodeEncodeError,确保代码健壮性。utf-16 解码而不考虑字节序(endianness)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.