accept random crypt function