系统相关
首页 > 系统相关> > powershell创建密文密码文件

powershell创建密文密码文件

作者:互联网

$File = "\\10.10.10.1\test\Password.txt"
[Byte[]] $key = (1..16)
$Password = "123456" | ConvertTo-SecureString -AsPlainText -Force
$Password | ConvertFrom-SecureString -key $key | Out-File $File

 

 

https://www.pdq.com/blog/secure-password-with-powershell-encrypting-credentials-part-1/

标签:SecureString,www,key,密码文件,File,密文,Password,powershell
来源: https://www.cnblogs.com/victor0/p/13723275.html