Re: SecureString() in framework 1.1



Precisely you can't. That's what I meant. For now I'm not sure what you are
asking.

Note that the use of SecureString is not needed and that the same code would
work with a plain usual string (is this the information you are looking for
?). The SecureString allows to crpt/decrypt the string when needed and the
framework take some actions to avoid having this floating in memory where it
could be captured.

So unless you have a more specific requirement I would say just use a
string. The secure string is not at all related to running a program under
an account but is a general tool you can use to store sensitive strings in
2.0.

--
Patrice

"Pietro Pesce" <mistake8@xxxxxxxx> a écrit dans le message de news:
1185806252.061571.69480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 30 Lug, 16:31, "Patrice" <http://www.chez.com/scribe/> wrote:
So you can't use SecureString !? So I'm sure what the question is but it
could range from just using a plain old string or crypting yourself the
string (possibly using the same class name so that you could easily
upgrade
to 2.0 once read) or enforcing the use of .NET 2.0. Anyway there are
likely
some securestring features you won't be able to implement by yourself.

Also as a side note it's likely best to always code for the framework you
target so that you don't use accidentaly things that would not compile
anyway on an earlier framework release you support...

If not enough please elaborate a bit on your requirements (for now the
question sounds like how do I use a 2.0 specific feature in 1.1 which is
not
possible by definition).

---
Patrice

"Pietro Pesce" <mista...@xxxxxxxx> a écrit dans le message de news:
1185805140.284732.226...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



On 30 Lug, 15:58, Rory Becker <RoryBec...@xxxxxxxxxxxxxxxx> wrote:
its work...but whit framework 1.1 dont work because SecureString()
there arent.

i must be run i program whit the administrator privileges......where
i

As far as I know. the securestring does not exist in the 1.1 framework.

I think you'll need to compile the code against version 2.0 or better.

--
Rory

i know....but i must run the program whit the pc whit framework 1.1-
Nascondi testo tra virgolette -

- Mostra testo tra virgolette -


mmmm i dont understand:
1- how can use securestring whit fw 1.1? post the code?
2- you know another method for run the program whit the administrator
privileges?


tnx





.



Relevant Pages

  • Re: Best practice SecureString and pswd collection
    ... because ConsoleKeyInfo just keeps one char in it's structure. ... There is never a string exposed. ... SecureString password = new SecureString; ...
    (microsoft.public.dotnet.security)
  • Re: Destroy a string
    ... public static unsafe void OverwriteString{ ... The string is still on the heap, ... That's why the SecureString was invented, it get's allocated in a non swappable fixed ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SecureString() in framework 1.1
    ... string (possibly using the same class name so that you could easily upgrade ... some securestring features you won't be able to implement by yourself. ... Also as a side note it's likely best to always code for the framework you ... i know....but i must run the program whit the pc whit framework 1.1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: System.Diagnostics.Process() hangs
    ... very simple and runs %system% ver, and returns the windows version. ... webservice will need to invoke an exe (which is a server application ... public string CreateTSUser ... SecureString securePass = new SecureString; ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: System.Diagnostics.Process() hangs
    ... you redirected output & input, then did a wait for task exit. ... exit until it writes its output, which you won't read until it exits. ... public string CreateTSUser ... SecureString securePass = new SecureString; ...
    (microsoft.public.dotnet.framework.aspnet)