{"id":25959287,"url":"https://github.com/aetonsi/pwsh__openssl","last_synced_at":"2026-07-03T00:01:59.585Z","repository":{"id":175529014,"uuid":"530370808","full_name":"aetonsi/pwsh__Openssl","owner":"aetonsi","description":"{pwsh} Powershell tools to encrypt and decrypt files with OpenSSL.","archived":false,"fork":false,"pushed_at":"2022-11-07T12:01:15.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T21:54:56.333Z","etag":null,"topics":["encryption","openssl","powershell","pwsh"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aetonsi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-29T19:48:23.000Z","updated_at":"2024-09-16T19:47:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4739f82-f3f7-46ca-bcf8-17912d6edab1","html_url":"https://github.com/aetonsi/pwsh__Openssl","commit_stats":null,"previous_names":["aetonsi/pwsh__openssl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aetonsi/pwsh__Openssl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aetonsi%2Fpwsh__Openssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aetonsi%2Fpwsh__Openssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aetonsi%2Fpwsh__Openssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aetonsi%2Fpwsh__Openssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aetonsi","download_url":"https://codeload.github.com/aetonsi/pwsh__Openssl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aetonsi%2Fpwsh__Openssl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35067032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["encryption","openssl","powershell","pwsh"],"created_at":"2025-03-04T18:36:04.781Z","updated_at":"2026-07-03T00:01:59.576Z","avatar_url":"https://github.com/aetonsi.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwsh__Openssl\nPowershell tools to encrypt and decrypt files with OpenSSL.\n\nUses `aes-256-cbc` with 1 million iterations.\n\n# Usage\n```powershell\n# First import the module\nImport-Module ./Openssl.psm1\n\n# Then you can use its functions...\n\n# set/get encryption password\n$pass = Read-Host -MaskInput \"Enter password\"\n\n# Encrypt a file\n$pass | ConvertTo-OpensslEncrypted -in ./plaintext.txt -out ./encrypted.dat\n# or with base64 encoding\n$pass | ConvertTo-OpensslEncrypted -in ./plaintext.txt -out ./encrypted.base64.txt -base64\n# or with output to console instead of file\n$pass | ConvertTo-OpensslEncrypted -in ./plaintext.txt -base64\n\n# Decrypt a file\n$pass | ConvertFrom-OpensslEncrypted -in ./encrypted.dat -out ./plaintext.txt\n# or, if the file was base64 encoded\n$pass | ConvertFrom-OpensslEncrypted -in ./encrypted.base64.txt -out ./plaintext.txt -base64\n# or with output to console instead of file\n$pass | ConvertFrom-OpensslEncrypted -in ./encrypted.base64.txt -base64\n\n# Decrypt a file and read a single line (eg. the 4th line) as UTF8\n$pass | Read-OpensslEncryptedFileLineAsUtf8 -in ./encrypted.dat -line 4\n# or, if the file was base64 encoded\n$pass | Read-OpensslEncryptedFileLineAsUtf8 -in ./encrypted.base64.txt -line 4 -base64\n# or with output to a file\n$pass | Read-OpensslEncryptedFileLineAsUtf8 -in ./encrypted.base64.txt -out ./line.txt -line 4 -base64\n\n# Run openssl speed\nInvoke-OpensslSpeed -in ./encrypted.dat\n# or, if the file was base64 encoded\nInvoke-OpensslSpeed -in ./encrypted.base64.txt -base64\n# or, altering the test duration\nInvoke-OpensslSpeed -in ./encrypted.base64.txt -base64 -seconds 10\n\n# (helper function) Calculate the filesize of the plaintext of a base64 encoded file\nGet-Base64EncodedFilePlaintextSize -in ./encrypted.base64.txt\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faetonsi%2Fpwsh__openssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faetonsi%2Fpwsh__openssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faetonsi%2Fpwsh__openssl/lists"}