def encrypt(self, data):
        """
        :type data: any
        :rtype: any
        """
        data = force_bytes(data)
        iv = os.urandom(16)
        return self._encrypt_from_parts(data, iv)
def encrypt(self, data):
        """
        :type data: any
        :rtype: any
        """
        data = force_bytes(data)
        iv = os.urandom(16)
        return self._encrypt_from_parts(data, iv)
def encrypt ( self , data ) : data = force_bytes ( data ) iv = os . urandom ( 16 ) return self . _encrypt_from_parts ( data , iv )
:type data: any
        :rtype: any
: type data : any : rtype : any