I also agree with Beech King,
Having the code somewhere where it can only be viewed from airside, is changed regularly and is accessed relatively easily by pilots has proven the best way to go.
Sorry Sunfish, the CTAF is not a code, except for the lasiest of airport operators. Surprised the regulator lets them get away with it.