update the way of encryption