upgrade encryptor