fix crypt algorithm