finish encryption