Data Encryption In Queue

orchestrator
studio

#1

I need some help regarding data encryption in queue.

There is one customer requirement that queue data should be encrypted/secured as they will store personal information.

I have tried using secure string. Its working for add queue item (I mean while adding to queue its saving as secure string) But when I retrieving data using get transaction item its not converting from secure string to normal string.

Can you plz share some approach here.

Thanks


#2

@jayashree, Have you tried this ?

–> How to use Type Secure Text

Regards,
Dominic :slight_smile:


How to convert a secure string into string ( Issues while retrieving credentials from Asset and further loggin into SMTP email )
#3

Yes…I have tried …I am able to encrypt using secure string but not able to decrypt (from secure string to string.)


#4

@jayashree, What error are you getting ? May I know how do you encrypt ?

Regards,
Dominic :slight_smile:


#5

I am using secure string while adding to queue.
SecureString StrEmpName=New System.Net.NetworkCredential(String.Empty,empName).SecurePassword
And after using GetTransaction Data
String empName=TransactionItem.SpecificContent(“EmpName”)

String strEmpName=New System.Net.NetworkCredential(String.Empty,empName).Password

But I am not getting the actual value .The output which I am getting isSystem.Security.SecureString.

Thanks.


#6

@jayashree, Have you checked how its getting queued in orchestrator ?

-> I get an errorcouldn’t determine JSON Object type for system.security.seurestring” while adding it as a secure string.
-> Then tried converting it to a JSON am getting only length of my secure string after adding in queue.

Regards,
Dominic :slight_smile:


#7

I get an error “couldn’t determine JSON Object type for system.security.seurestring” while adding it as a secure string


For this while adding to queue in item collection send the value as “secure_stringEmpID.ToString”


#8

@jayashree, From my understanding when u convert it to string and add, it takes the datatype as value. i.e System.Security.SecureString is the value here.
Because I got 28 as length of the output from get Transaction Item.

WorkAround: Refer Encrypt and Decrypt Using Class section from the below link (if needed),

Encrypt and Decrypt Using Class

Regards,
Dominic :slight_smile: