How to get the hashed password from SQL

Hello all,

I am trying to get the password which is stored in sql table and hashed using the below command:
HASHBYTES(‘SHA2_512’, ‘myPassword’)).

Now, in UiPath I am downloading the entire table and assigning values to the variable:
hashedPassword = dbTable.Rows(0).Item(“PORTAL_PASSWORD”).ToString

The result which I am getting is System.Byte.
Does anyone one now how can I convert it to secure string?

If I assign output from DB to variable type Object:
Object hashedPassword = dbTable.Rows(0).Item(“PORTAL_PASSWORD”)
I get something like this and I do not know what to do with it.

image