Friendly codes are three-letter codes serving as a password for a planet's or starship's computer systems. Two objects having the same friendly code appear friendly to each other.
Some friendly codes activate special missions for the planet or the starship. PHost aims to move away from using friendly code for these cases, towards extended missions and commands, but the friendly codes are still supported.
Friendly codes can contain any printable character from the ASCII set (i.e. no control characters, no high-ASCII characters).