change password encoding algorithm