Standard Library

GoEncodingHex

encoding/hex package. DecodeString() converts hex to bytes — does not sanitize taint. EncodeToString() may be used as a sanitizer in specific contexts.

1 sanitizer

Sanitizers

.EncodeToString()Sanitizer
#
Signature
EncodeToString(src []byte) string

Encodes bytes to hex. Safe for SQL/command contexts — acts as sanitizer.

Other Methods

.DecodeString()Neutral
#
Signature
DecodeString(s string) ([]byte, error)

Decodes hex string to bytes. Taint propagates through.

Fully-Qualified Names

FQNField
encoding/hexfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import GoEncodingHex