Questions tagged [securestring]

Represents text that should be kept confidential. The text is encrypted for privacy when being used, and deleted from computer memory when no longer needed

SecureString object is similar to a String object in that it has a text value. However, the value of a SecureString object is automatically encrypted, can be modified until the application marks it as read-only, and can be deleted from computer memory by either the application or the .NET Framework garbage collector.

224 questions
0
votes
1 answer

Password from SecureString makes the script hanging

$password = Get-Content 'c:\temp\tmp1\pw.dat' | ConvertTo-SecureString & "C:\Program Files\PuTTY\pscp.exe" -P 2222 -pw $password 'c:\temp\tmp1\test.txt' 'root@localhost:/home/root/temp' The above code just got hanging; However, the code below…
Seaport
  • 153
  • 2
  • 14
0
votes
1 answer

Is this property Password's insecure string cached in memory

If I do the following in a class, is my password cached/discoverable in memory? public class ConnectionInfo { private SecureString _password; public string UserName; public string Password { get …
Shaun Vermaak
  • 301
  • 2
  • 13
0
votes
1 answer

Cannot convert string to SecureString (dialing VPN)

So I got a code which creates and connect VPN in Windows 10 using PowerShell and radial. Everything works just fine. But when I want to dial VPN with user input credentials I'm getting an error. This is my code: Console.WriteLine("VPN…
Johny Corbie
  • 63
  • 10
0
votes
1 answer

How do I transmit a SecureString (or similar) across the network without exposing the plaintext?

I have an application with a "secret" (eg password) I don't want to store this secret locally in a user-accessible context file, so I'm planning to retrieve it on-demand from the server over HTTPS I also don't want it visible in memory (eg from a…
Jon Story
  • 2,881
  • 2
  • 25
  • 41
0
votes
2 answers

SAS token as a SecureString not working with ARM template deployment using Azure PowerShell

I have a bunch of nested ARM templates meant to be deployed using Azure PS. The only way to do that is to host those templates in a Azure blob container and then generate SAS token and send these 2 parameters in the main ARM template (which points…
bit
  • 4,407
  • 1
  • 28
  • 50
0
votes
1 answer

Get SecureString as a Plain Text Parameter

I'm trying to get a SecureString as plain text parameter to a command line PowerShell. I know what is the form of the secure string. For example, the string "abc" would be a Secure String of "71289371289". Then, I want to pass "71289371289" as a…
Avishay Bar
  • 783
  • 1
  • 7
  • 12
0
votes
0 answers

how to serialize and deserialize powershell PSCredential and SecureString objects?

How to serialize and deserialize powershell PSCredential and SecureString objects? so that these object values can be sent as http Request.
user1174114
  • 178
  • 1
  • 19
0
votes
1 answer

How to I convert a Base64-encoded string directly to a SecureString

I need to convert a base64-encoded string to a SecureString without having to use a regular C# string, po prevent a password being stored in memory in cleartext. Right now I have code that does this: string encodedPassword =…
Frogger
  • 94
  • 8
0
votes
0 answers

Is it possible to use SecureString as an argument to ProtectedData.Protect?

Is there any way to provide a SecureString as an argument to the ProtectData.Protect method without first converting it to a regular string? Currently I have the below code to perform this operation. I've used SecureString to hold the password from…
JohnLBevan
  • 22,735
  • 13
  • 96
  • 178
0
votes
1 answer

Most secure way to store strings and use for later

I am developing an app where I need to store two strings for later use . I used sharedpreferences for that . But later I found that this is not secure enough . For rooted phones it is very easy to get the preferences and there are other processes…
0
votes
2 answers

.net secure string concatenating

I need help with string merging in vb.net. Is it possible to concatenate 2 secure strings together? I have part1.securestring and part2.securesting and I want my output to be mainPassword = part1 + part2. But it does not work. Do you have any ideas…
0
votes
1 answer

Use SecureString password object in dsquery command authentication

I have followed the following guide to create a SecureString password. Now, I need to log on to a foreign Domain Controller with the dsquery options -s (server) -u (user) and -p (password). dsquery group -name $group -s $rmSrv -u $user -p $pass |…
JayBe
  • 3
  • 3
0
votes
1 answer

What encryption technology does UiPath use?

What encryption technology does UiPath use? For both normal transactions and for SecureString to store credentials?
Prabhakaran
  • 23
  • 1
  • 6
0
votes
1 answer

How do I properly emit binary data from a SecureString, so that it can later be converted to a string?

I have strings of sensitive information that I need to collect from my users. I am using a WPF PasswordBox to request this information. For the uninitiated, the PasswordBox control provides a SecurePassword property which is a SecureString object…
RLH
  • 15,230
  • 22
  • 98
  • 182
0
votes
1 answer

What is the best way to encrypt the contents of a SecureString using a Rijndael encryptor?

I have a need to take sensitive information collected from a WPF PasswordBox. After the user enters this data, it needs to be encrypted using a System.Security.Cryptography.Rijendael encryptor object. Currently, this code that is being modified…
RLH
  • 15,230
  • 22
  • 98
  • 182