(self, data)
return b64encode(self.crypt(data))
Encrypt the data and b64 encode
Encrypt the data and b64 encode
Encrypt the data and b64 encode
def encrypt(self, data):
        """Encrypt the data and b64 encode"""
        if self.key is None:
            return None
        return b64encode(self.crypt(data))
def encrypt ( self , data ) : if self . key is None : return None return b64encode ( self . crypt ( data ) )