def save(self, *args, **kwargs): pc = Prpcrypt() # 初始化 self.master_password = pc.encrypt(self.master_password) super(MasterConfig, self).save(*args, **kwargs)
def save(self, *args, **kwargs): pc = Prpcrypt() # 初始化 self.slave_password = pc.encrypt(self.slave_password) super(SlaveConfig, self).save(*args, **kwargs)
def save(self, *args, **kwargs): pc = Prpcrypt() # 初始化 self.ak = pc.encrypt(self.ak) self.secret = pc.encrypt(self.secret) super(AliyunAccessKey, self).save(*args, **kwargs)
def save(self, *args, **kwargs): pc = Prpcrypt() # 初始化 self.password = pc.encrypt(self.password) super(Instance, self).save(*args, **kwargs)