Title: ConvertFrom-SecureString is broken on Linux · Issue #1654 · PowerShell/PowerShell · GitHub
Open Graph Title: ConvertFrom-SecureString is broken on Linux · Issue #1654 · PowerShell/PowerShell
X Title: ConvertFrom-SecureString is broken on Linux · Issue #1654 · PowerShell/PowerShell
Description: Steps to reproduce Install PowerShell on Ubuntu 14.04 Launch PowerShell Run the following: $password = Convertto-Securestring -String "PowerShellRocks!" -AsPlainText -Force ConvertFrom-SecureString $password Expected behavior No error Ac...
Open Graph Description: Steps to reproduce Install PowerShell on Ubuntu 14.04 Launch PowerShell Run the following: $password = Convertto-Securestring -String "PowerShellRocks!" -AsPlainText -Force ConvertFrom-SecureString...
X Description: Steps to reproduce Install PowerShell on Ubuntu 14.04 Launch PowerShell Run the following: $password = Convertto-Securestring -String "PowerShellRocks!" -AsPlainText -Force ConvertFrom-Se...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1654
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConvertFrom-SecureString is broken on Linux","articleBody":"## Steps to reproduce\r\n1. Install PowerShell on Ubuntu 14.04\r\n2. Launch PowerShell\r\n3. Run the following:\r\n```powershell\r\n $password = Convertto-Securestring -String \"PowerShellRocks!\" -AsPlainText -Force\r\n ConvertFrom-SecureString $password \r\n```\r\n## Expected behavior\r\n\r\nNo error\r\n## Actual behavior\r\n\r\nThe following error is thrown\r\n```\r\nPS /home/chythu/temp> ConvertFrom-SecureString $password ConvertFrom-SecureString : Unable to load DLL 'CRYPT32.dll': The specified\r\nmodule could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\nAt line:1 char:1\r\n- ConvertFrom-SecureString $password\r\n- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n - CategoryInfo : NotSpecified: (:) [ConvertFrom-SecureString], Dl\r\n lNotFoundException\r\n - FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell\r\n .Commands.ConvertFromSecureStringCommand\r\n```\r\n## Environment data\r\n```\r\nName Value\r\n---\r\nPSVersion 5.1.10032.0\r\nPSEdition PowerShellCore\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 3.0.0.0\r\nGitCommitId v6.0.0-alpha.7\r\nCLRVersion\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n```\r\n\r\n# Updates by @travisez13 on 2016-04-10\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.2 \r\nPSEdition Core \r\nGitCommitId v6.0.2 \r\nOS Darwin 17.5.0 Darwin Kernel Version 17.5.0: M...\r\nPlatform Unix \r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \r\nPSRemotingProtocolVersion 2.3 \r\nSerializationVersion 1.1.0.1 \r\nWSManStackVersion 3.0 \r\n\r\n\r\n```\r\n\r\n## Workaround\r\n\r\nThe following works\r\n ```Powershell\r\n# you should generate your own key\r\n$Key = (3,4,2,3,56,34,254,222,1,1,2,23,42,54,33,233,1,34,2,7,6,5,35,43) \r\n$s | ConvertFrom-SecureString -Key $Key \r\n```","author":{"url":"https://github.com/Krishna-Vutukuri","@type":"Person","name":"Krishna-Vutukuri"},"datePublished":"2016-08-04T22:32:05Z","url":"https://github.com/PowerShell/PowerShell/issues/1654"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:892497ac-0ab3-ca95-419e-b47cf5740ebf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CACC:8F0FA:25B04D:3453DC:6AFD7289 |
| html-safe-nonce | ee6b8f396016311e44b9bb0a8de6723b63f8797f1e781b60caef313e94066e0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUNDOjhGMEZBOjI1QjA0RDozNDUzREM6NkFGRDcyODkiLCJ2aXNpdG9yX2lkIjoiNzA1NzM0MzQxNzY1MDM0NDU4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5fabbdbf906322ff6bd6e95df41343a9d461f63b8c3aca59e19f0b7450a8b2b3 |
| hovercard-subject-tag | issue:169488677 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/1654/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b460fea9dcc56a3302901ce8743d563bc188cb73a5e9a56b59cfdeed518da88b/PowerShell/PowerShell/issues/1654 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b460fea9dcc56a3302901ce8743d563bc188cb73a5e9a56b59cfdeed518da88b/PowerShell/PowerShell/issues/1654 |
| og:image:alt | Steps to reproduce Install PowerShell on Ubuntu 14.04 Launch PowerShell Run the following: $password = Convertto-Securestring -String "PowerShellRocks!" -AsPlainText -Force ConvertFrom-SecureString... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Krishna-Vutukuri |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width