Add methods to encode and decode mail passwords