{"id":19055417,"url":"https://github.com/evotecit/pspgp","last_synced_at":"2025-08-12T17:40:59.190Z","repository":{"id":40598024,"uuid":"365554132","full_name":"EvotecIT/PSPGP","owner":"EvotecIT","description":"PSPGP is a PowerShell module that provides PGP functionality in PowerShell. It allows encrypting and decrypting files/folders and strings using PGP.","archived":false,"fork":false,"pushed_at":"2025-07-16T13:52:03.000Z","size":6422,"stargazers_count":65,"open_issues_count":3,"forks_count":22,"subscribers_count":4,"default_branch":"v2-speedygonzales","last_synced_at":"2025-08-08T09:44:30.200Z","etag":null,"topics":["gpg","pgp","powershell"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvotecIT.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.MD","contributing":null,"funding":".github/FUNDING.yml","license":"License","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,"zenodo":null},"funding":{"github":"PrzemyslawKlys","custom":["https://paypal.me/PrzemyslawKlys"]}},"created_at":"2021-05-08T15:53:53.000Z","updated_at":"2025-07-16T13:52:06.000Z","dependencies_parsed_at":"2022-09-01T19:11:26.901Z","dependency_job_id":"bdba8766-f27f-4d83-9015-9e19aa1e1c5d","html_url":"https://github.com/EvotecIT/PSPGP","commit_stats":{"total_commits":102,"total_committers":4,"mean_commits":25.5,"dds":0.0490196078431373,"last_synced_commit":"57fc1425008c626d39be7c489e90998dddbbd4ca"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/EvotecIT/PSPGP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSPGP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSPGP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSPGP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSPGP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvotecIT","download_url":"https://codeload.github.com/EvotecIT/PSPGP/tar.gz/refs/heads/v2-speedygonzales","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSPGP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270108319,"owners_count":24528758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["gpg","pgp","powershell"],"created_at":"2024-11-08T23:44:58.840Z","updated_at":"2025-08-12T17:40:59.169Z","avatar_url":"https://github.com/EvotecIT.png","language":"C#","funding_links":["https://github.com/sponsors/PrzemyslawKlys","https://paypal.me/PrzemyslawKlys"],"categories":[],"sub_categories":[],"readme":"﻿# PSPGP - PowerShell Module\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://dev.azure.com/evotecpl/PSPGP/_build/results?buildId=latest\"\u003e\u003cimg src=\"https://dev.azure.com/evotecpl/PSPGP/_apis/build/status/EvotecIT.PSPGP\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/v/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/vpre/PSPGP.svg?label=powershell%20gallery%20preview\u0026colorB=yellow\u0026style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/github/license/EvotecIT/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/p/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/top/evotecit/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/code-size/evotecit/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSPGP\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/dt/PSPGP.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/PrzemyslawKlys\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/PrzemyslawKlys.svg?label=Twitter%20%40PrzemyslawKlys\u0026style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://evotec.xyz/hub\"\u003e\u003cimg src=\"https://img.shields.io/badge/Blog-evotec.xyz-2A6496.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/in/pklys\"\u003e\u003cimg src=\"https://img.shields.io/badge/LinkedIn-pklys-0077B5.svg?logo=LinkedIn\u0026style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://evo.yt/discord\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/508328927853281280?style=flat-square\u0026label=discord%20chat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n**PSPGP** is a PowerShell module that provides PGP functionality in PowerShell. It allows encrypting and decrypting files/folders and strings using PGP.\n**PSPGP** uses the following .NET library:\n\n- [PgpCore](https://github.com/mattosaurus/PgpCore) - licensed MIT\n\n## To install\n\n```powershell\nInstall-Module -Name PSPGP -AllowClobber -Force\n```\n\nForce and AllowClobber aren't necessary, but they do skip errors in case some appear.\n\n## And to update\n\n```powershell\nUpdate-Module -Name PSPGP\n```\n\nThat's it. Whenever there's a new version, you run the command, and you can enjoy it. Remember that you may need to close, reopen PowerShell session if you have already used module before updating it.\n\n**The essential thing** is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update may break your code. For example, a small rename to a parameter, and your code stops working! Be responsible!\n\n## IMPORTANT\n\nThis module works correctly on Windows/Linux and MacOS, but since it uses **.NET STANDARD 2.0** library it requires minimum of **.NET Framework 4.7.2** installed on a Windows machine when using PowerShell 5.1. Please make sure to keep your .NET Framework up to date on **Windows Client/Servers**.\n\n## Using\n\n### Create new PGP Public/Private Keys\n\n```powershell\nNew-PGPKey -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc -FilePathPrivate $PSScriptRoot\\Keys\\PrivatePGP.asc -UserName 'przemyslaw.klys' -Password 'ZielonaMila9!'\n```\n\n### Encrypt Folder\n\n```powershell\nProtect-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc -FolderPath $PSScriptRoot\\Test -OutputFolderPath $PSScriptRoot\\Encoded\n```\n\n### Decrypt Folder\n\n```powershell\nUnprotect-PGP -FilePathPrivate $PSScriptRoot\\Keys\\PrivatePGP.asc -Password 'ZielonaMila9!' -FolderPath $PSScriptRoot\\Encoded -OutputFolderPath $PSScriptRoot\\Decoded\n```\n\nDecrypting can also be done using multiple private keys:\n\n```powershell\nUnprotect-PGP -FilePathPrivate $PSScriptRoot\\Keys\\PrivatePGP.asc,$PSScriptRoot\\Keys\\PrivatePGP1.asc -Password 'ZielonaMila9!' -String $ProtectedString\n```\n\n### Encrypt / Decrypt String\n\n```powershell\n$ProtectedString = Protect-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc -String \"This is string to encrypt\"\nUnprotect-PGP -FilePathPrivate $PSScriptRoot\\Keys\\PrivatePGP.asc -Password 'ZielonaMila9!' -String $ProtectedString\n```\n\n### Verify signature\n\n```powershell\n$ProtectedString = Protect-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc -String \"This is string to encrypt\"\n\n# Verify using one or more public keys\nTest-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc,$PSScriptRoot\\Keys\\Other.asc -String $ProtectedString\n\nTest-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc,$PSScriptRoot\\Keys\\Other.asc -FolderPath $PSScriptRoot\\Encoded\n```\n\n### Sign string\n\n```powershell\n$Signature = Protect-PGP -SignOnly -SignKey $PSScriptRoot\\Keys\\PrivatePGP.asc -SignPassword 'ZielonaMila9!' -String 'Signed text'\nTest-PGP -FilePathPublic $PSScriptRoot\\Keys\\PublicPGP.asc -String $Signature\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevotecit%2Fpspgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevotecit%2Fpspgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevotecit%2Fpspgp/lists"}