Implement password encryption