Clean up password encryption code.