update encrypt