René's URL Explorer Experiment


Title: ConvertTo-SecureString truncates to multiples of 8 characters · Issue #16047 · PowerShell/PowerShell · GitHub

Open Graph Title: ConvertTo-SecureString truncates to multiples of 8 characters · Issue #16047 · PowerShell/PowerShell

X Title: ConvertTo-SecureString truncates to multiples of 8 characters · Issue #16047 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

X Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Opengraph URL: https://github.com/PowerShell/PowerShell

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConvertTo-SecureString truncates to multiples of 8 characters","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nIn 7.2.0-preview.9, `ConvertTo-SecureString` with either `-Key` or `-SecureKey` truncates the payload down to the nearest multiple of eight characters.  `ConvertFrom-SecureString` seems to be fine; SecureStrings created in 7.1.4 and imported to 7.2.0-preview.9 aren't truncated when converted to plaintext.\n\n### Expected behavior\n\n```console\nPS> $Key = [Byte[]]::New(32)\r\n>> '[8Chars][8Chars][Not8]' |\r\n>> ConvertTo-SecureString -AsPlainText -Force |\r\n>> ConvertFrom-SecureString -Key $Key |\r\n>> ConvertTo-SecureString -Key $Key |\r\n>> ConvertFrom-SecureString -AsPlainText\r\n[8Chars][8Chars][Not8]\r\n\r\nPS> $Key = [Byte[]]::New(32)\r\n>> '🟥🟧🟨🟩🟦🟪' |\r\n>> ConvertTo-SecureString -AsPlainText -Force |\r\n>> ConvertFrom-SecureString -Key $Key |\r\n>> ConvertTo-SecureString -Key $Key |\r\n>> ConvertFrom-SecureString -AsPlainText\r\n🟥🟧🟨🟩🟦🟪\n```\n\n\n### Actual behavior\n\n```console\nPS> $Key = [Byte[]]::New(32)\r\n>> '[8Chars][8Chars][Not8]' |\r\n>> ConvertTo-SecureString -AsPlainText -Force |\r\n>> ConvertFrom-SecureString -Key $Key |\r\n>> ConvertTo-SecureString -Key $Key |\r\n>> ConvertFrom-SecureString -AsPlainText\r\n[8Chars][8Chars]\r\n\r\nPS> $Key = [Byte[]]::New(32)\r\n>> '🟥🟧🟨🟩🟦🟪' |\r\n>> ConvertTo-SecureString -AsPlainText -Force |\r\n>> ConvertFrom-SecureString -Key $Key |\r\n>> ConvertTo-SecureString -Key $Key |\r\n>> ConvertFrom-SecureString -AsPlainText\r\n🟥🟧🟨🟩\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\nName                           Value\r\n----                           -----\r\nPSVersion                      7.2.0-preview.9\r\nPSEdition                      Core\r\nGitCommitId                    7.2.0-preview.9\r\nOS                             Microsoft Windows 10.0.22449\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/dwtaber","@type":"Person","name":"dwtaber"},"datePublished":"2021-09-04T01:03:55Z","url":"https://github.com/PowerShell/PowerShell/issues/16047"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:3ef58dbd-179b-664b-b923-d98cf0debf90
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD77E:332A98:8BE6C5:C4BC0B:6AFDC769
html-safe-nonce8662dff8f8debd90f602acf10ae94dd5408ae7339635b2743d851a00353a4919
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzdFOjMzMkE5ODo4QkU2QzU6QzRCQzBCOjZBRkRDNzY5IiwidmlzaXRvcl9pZCI6Ijc3MzczOTY1NjA2MzUyMTc3NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0ec747d9aa0dfc04860618a70a39e1e93be9ec6e90a1547746d28e07cf5332fb
hovercard-subject-tagrepository:49609581
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/issues/16047
twitter:imagehttps://repository-images.githubusercontent.com/49609581/aad0ad80-cdec-11ea-8248-a37bc0571bfd
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/49609581/aad0ad80-cdec-11ea-8248-a37bc0571bfd
og:image:altPowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9ab00cc3b4fa90bbd3da70765dd38efc23cfa9d9b0930e41feea2bf67f60ecaf
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1b795ba060b92691fc16c5a12cf2bf95e83432b4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/16047#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F16047
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F16047
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/16047
Reloadhttps://github.com/PowerShell/PowerShell/issues/16047
Reloadhttps://github.com/PowerShell/PowerShell/issues/16047
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16047
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16047
#16068https://github.com/PowerShell/PowerShell/pull/16068
ConvertTo-SecureString truncates to multiples of 8 charactershttps://github.com/PowerShell/PowerShell/issues/16047#top
#16068https://github.com/PowerShell/PowerShell/pull/16068
https://github.com/PaulHigin
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Securitysecurity related areas such as JEAhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Security%22
7.2-Considerhttps://github.com/PowerShell/PowerShell/milestone/93
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 4, 2021https://github.com/PowerShell/PowerShell/issues/16047#issue-988177386
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
dwtaberhttps://github.com/dwtaber
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Sep 4, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5255912595
Ilya (iSazonov)https://github.com/iSazonov
WG-Securitysecurity related areas such as JEAhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Security%22
on Sep 4, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5256685269
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 5, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-913247478
this breaking change to System.Security.Cryptography.CryptoStreamhttps://github.com/dotnet/runtime/pull/53644
https://github.com/fMichaleczek
Flavien MICHALECZEK (fMichaleczek)https://github.com/fMichaleczek
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-913944035
dwtaberhttps://github.com/dwtaber
https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streamshttps://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streams
PowerShell/src/System.Management.Automation/security/SecureStringHelper.cshttps://github.com/PowerShell/PowerShell/blob/17986d88c10eb6271b1aad2ca955889e45e2b285/src/System.Management.Automation/security/SecureStringHelper.cs#L334-L388
17986d8https://github.com/PowerShell/PowerShell/commit/17986d88c10eb6271b1aad2ca955889e45e2b285
https://camo.githubusercontent.com/d8d007c3a23abeac6e24af72edca17c0f622e11905597a823ca3ad9bb1f71401/68747470733a2f2f646f63732e6d6963726f736f66742e636f6d2f646f746e65742f6d656469612f646f746e65742d6c6f676f2e706e67
Breaking change: Partial and zero-byte reads in DeflateStream, GZipStream, and CryptoStream - .NEThttps://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streams
Ilya (iSazonov)https://github.com/iSazonov
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5263143527
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914236378
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914330078
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914362195
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream.read?view=net-5.0https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream.read?view=net-5.0
https://camo.githubusercontent.com/78d8d028f1a7beab7d427e867be169d7ffef55cc82eebd33bdf34851afc0c81c/68747470733a2f2f646f63732e6d6963726f736f66742e636f6d2f656e2d75732f6d656469612f6c6f676f732f6c6f676f2d6d732d736f6369616c2e706e67
CryptoStream.Read(Byte[], Int32, Int32) Method (System.Security.Cryptography)https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream.read
Ilya (iSazonov)https://github.com/iSazonov
7.2-Considerhttps://github.com/PowerShell/PowerShell/milestone/93
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5266746586
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914458040
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream.read?view=net-5.0https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream.read?view=net-5.0
new overload for Array.Clearhttps://docs.microsoft.com/en-us/dotnet/api/system.array.clear?view=net-6.0#System_Array_Clear_System_Array_
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914486723
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5267131497
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5267176103
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914557124
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914573746
was mentionedhttps://github.com/PowerShell/PowerShell/issues/16047#issuecomment-913944035
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 7, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-914679427
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 8, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-915625966
https://github.com/dwtaber
dwtaberhttps://github.com/dwtaber
on Sep 8, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-915647363
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 9, 2021https://github.com/PowerShell/PowerShell/issues/16047#issuecomment-916220278
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 9, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5279483946
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Sep 9, 2021https://github.com/PowerShell/PowerShell/issues/16047#event-5279486557
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/16047
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/16047
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Securitysecurity related areas such as JEAhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Security%22
7.2-ConsiderNo due datehttps://github.com/PowerShell/PowerShell/milestone/93
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.