[3.5.x] Redmine#4565: test hashing and remove crypt

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