fixed is_crypt in tools, thanks Anthony