support old-style crypt password
fix rubocop