Worknig with encrpytion