fix java style, add crypt for passwords