register, encrypt file