Redmine#4565: test hashing and remove crypt

see https://cfengine.com/dev/issues/4565