View all questions & answers for the UiPath-ADAv1 exam
Which is the recommended variable type for storing password values that are composed solely of numbers?
Object
Int32
SecureString
Int64
Comprehensive and Detailed Explanation:
In UiPath, when dealing with passwords or sensitive data, the recommended variable type is SecureString because:
Security:
SecureString is designed to protect sensitive information in memory.
It encrypts the data and prevents exposure in logs or output panels.
UiPath Activities Support SecureString:
Activities like "Type Secure Text", "Get Password", and "Credentials Management" work only with SecureString.
How to Use SecureString in UiPath:
Convert a string to SecureString:
Dim securePassword As New System.Security.SecureString()
For Each c As Char In "123456"
securePassword.AppendChar(c)
Next
Convert SecureString to a normal string (not recommended for security reasons):
Dim password As String = New System.Net.NetworkCredential("", securePassword).Password
Why Other Options Are Incorrect?
A (Object):
Too generic and does not provide security for sensitive data.
B (Int32):
Only stores whole numbers, but passwords may contain leading zeros or special characters, making it unsuitable.
D (Int64):
Same issue as Int32; also, passwords should not be stored as numeric values to prevent security risks.
Submit