Skip to content

Commit 7f293f4

Browse files
authored
Updates example for as plain text rule (#235)
Co-authored-by: Mike F. Robbins <[email protected]>
1 parent e125b8a commit 7f293f4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingConvertToSecureStringWithPlainText.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,4 @@ $EncryptedInput = ConvertTo-SecureString -String $UserInput -AsPlainText -Force
3838

3939
```powershell
4040
$SecureUserInput = Read-Host 'Please enter your secure code' -AsSecureString
41-
$EncryptedInput = ConvertFrom-SecureString -String $SecureUserInput
42-
$SecureString = ConvertTo-SecureString -String $EncryptedInput
4341
```

0 commit comments

Comments
 (0)