Skip to content

Commit b6b7bb1

Browse files
author
manualbashing
committed
fix: language
1 parent 6e19689 commit b6b7bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/posts/decode-powershell-securestring-linux.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ tags:
66
- PowerShell
77
---
88

9-
This is not a big deal, as *secure strings* are not encrypted under Unix systems. The password will instead be obfuscated as hexadecimal representation of the string's bytes.
9+
This is not a big deal, as *secure strings* are not encrypted on Unix systems. The password will instead be obfuscated as hexadecimal representation of the string's bytes.
1010

1111
According to [a user on reddit](https://www.reddit.com/r/PowerShell/comments/dtggfn/comment/f6wmpfu/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button), converting a string to a *secure string* it is basically doing this:
1212

1313
```powershell
1414
[BitConverter]::ToString([Text.Encoding]::Unicode.GetBytes('foo')).Replace('-','')
1515
```
1616

17-
This can be demonstrated in the following way:
17+
That this is not at all something that can be called secure, can be demonstrated in the following way:
1818

1919
```powershell
2020
$password = "foo"

0 commit comments

Comments
 (0)