combine crypt functions