add crypt file func