Added conv function for password