PowerShell / PowerShell/PSScriptAnalyzer
PSAvoidUsingConvertToSecureStringWithPlainText how can i encrypt plain strings then??
未關閉
還沒有人認領這個 Issue。
Area - Rules
Issue - Discussion
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 414
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
描述
So, im trying to convert a string to a securestring, so it can be secure when i serialize it to disk. How am i supposed to do it with doing:
ConvertTo-SecureString -String 'EncryptMe' -AsPlainText -Force
In my situation, i am getting return data that is a string, i cannot prompt the user to input it as a pscredential or something as the user does not know what it is. But after i have the data, i want to secure it, hence, convertto-securestring. Please advise how i can do this (ideally without just using ExcludeRule).
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 PSAvoidUsingConvertToSecureStringWithPlainText 規則以及 ConvertTo-SecureString 接收純文字時的文件化行為入手。該 issue 沒有指明檔案、測試或具體的文件變更,因此請在編輯之前釐清預期的指引內容,並確定完成的更新應涵蓋哪些內容。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- powershell
- 領域
- security, tooling
- Issue 類型
- 文件
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100