Implementation of original authprogs written in C