A former Bletchley Park codebreaker has said "moderation" is the key to his long life as he celebrated his 100th Birthday.