in reply to Re^6: convert hexadecimal value to encrypted string
in thread convert hexadecimal value to encrypted string

Thanks for finally clarifying what you are trying to do with the hex string. Now have you answered you own question? Or do questions still remain? It's unclear from this post.

  • Comment on Re^7: convert hexadecimal value to encrypted string

Replies are listed 'Best First'.
Re^8: convert hexadecimal value to encrypted string
by linuxfan (Beadle) on Dec 11, 2004 at 21:18 UTC
    The question still remains. The hex string in the database should be equal to the encrypted string that I receive from the server when I send an encrypt request.

    # The following to get encrypted value from server my $num = 8235; my $request = Create_Request($num,$algorithm,$key,$mode,$iv,$padding); my $response = Send_TCP($request,$server,$port); my $binary = Parse_String($response); # Now $binary should match whatever is stored in database # Create database connection etc.. my $hex = Get_Value($dbh,$table_name,$col_name); # Now is $binary == $hex? # How do I match $hex and $binary ??
    I hope the above makes it clear. For my test to work, I need that $hex should match $binary.

    Thanks