Implementation of a perfect cryptosystem based on enumerative encoding