__PACKAGE__->add_columns( qw/all other fields/, password => { data_type => 'CHAR', size => 32, encode_column => 1, encode_class => 'Digest', encode_args => {algorithm => 'MD5', format => 'hex'}, encode_check_method => 'check_password', }, );