Update encryption code