框架1.1中的SecureString() [英] SecureString() in framework 1.1

查看:59
本文介绍了框架1.1中的SecureString()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


i有这个代码:

模块模块1

Sub Main()

Dim theProcessStartInfo As New

System.Diagnostics.ProcessStartInfo(" Cambio_ip.exe")

将theSecurePassword调暗为新的System.Security.SecureString()

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *" )

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" ; *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword .AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")
theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" *")

theSecurePassword.AppendChar(" * ")

theProcessStartInfo.UserName =" Administrator"

theProcessStartInfo.Password = theSecurePassword

theProcessStartInfo.UseShellExecute = False

''theProcessStartInfo.WorkingDirectory =" c:\"

System.Diagnostics.Process.Start(theProcessStartIn fo)

End Sub

结束模块

它的工作......但是whit framework 1.1不起作用,因为SecureString()

没有。

i必须是运行我程序管理员权限......其中

i

可以吗?

tnx,

再见

解决方案

它的工作...但是whit framework 1.1不起作用,因为SecureString()


没有。

必须运行
i我编程管理员权限......其中

i



据我所知。 1.1框架中不存在securestring。


我认为你需要针对2.0或更高版本编译代码。


-

Rory


30 Lug,15:58,Rory Becker< RoryBec ... @ newsgroup.nospamwrote:


它的工作......但是whit framework 1.1不起作用,因为SecureString()

没有。


i必须运行我的程序管理员权限......其中

i



据我所知。 1.1框架中不存在securestring。


我认为你需要针对2.0或更高版本编译代码。


-

Rory




i know ....但我必须运行程序才能使用pc whit framework 1.1


所以你不能使用SecureString!所以我很确定问题是什么,但是它只需要使用一个普通的旧字符串或者自己加密

字符串(可能使用相同的类名称)您可以轻松地将

升级到2.0(一旦读取)或强制使用.NET 2.0。无论如何,有可能是你自己无法实现的一些安全功能。


另外作为旁注,它可能是最好的始终为你的框架编码你b $ b目标,这样你就不会在你支持的早期框架版本中使用无法编译的事情

...


如果还不够请详细说明你的要求(现在

问题听起来好像我如何使用1.1中的2.0特定功能而不是

根据定义可能)。


---

Patrice


" Pietro Pesce < mi ****** @tele2.itaécritdansle message de news:
11 ******** @ r34g2000hsd.googlegroups。 com ...


30 Lug,15:58,Rory Becker< RoryBec ... @ newsgroup.nospamwrote:
< blockquote class =post_quotes>


它的工作......但是whit framework 1.1不起作用,因为SecureString()

没有。


i必须运行我的程序管理员权限......其中

i


据我所知。 1.1框架中不存在securestring。

我认为你需要针对2.0或更高版本编译代码。

-
Rory




i know ....但我必须在pc whit框架上运行程序1.1



hi all,

i have this code:
Module Module1
Sub Main()
Dim theProcessStartInfo As New
System.Diagnostics.ProcessStartInfo("Cambio_ip.exe ")
Dim theSecurePassword As New System.Security.SecureString()
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theProcessStartInfo.UserName = "Administrator"
theProcessStartInfo.Password = theSecurePassword
theProcessStartInfo.UseShellExecute = False
''theProcessStartInfo.WorkingDirectory = "c:\"
System.Diagnostics.Process.Start(theProcessStartIn fo)
End Sub
End Module
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
can do?
tnx,
bye

解决方案

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


On 30 Lug, 15:58, Rory Becker <RoryBec...@newsgroup.nospamwrote:

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


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" <mi******@tele2.ita écrit dans le message de news:
11**********************@r34g2000hsd.googlegroups. com...

On 30 Lug, 15:58, Rory Becker <RoryBec...@newsgroup.nospamwrote:

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



这篇关于框架1.1中的SecureString()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆