https://github.com/aetonsi/pwsh__base64encoding
{pwsh} Powershell tool to base64 encode and decode strings.
https://github.com/aetonsi/pwsh__base64encoding
base64 powershell pwsh
Last synced: 19 days ago
JSON representation
{pwsh} Powershell tool to base64 encode and decode strings.
- Host: GitHub
- URL: https://github.com/aetonsi/pwsh__base64encoding
- Owner: aetonsi
- License: wtfpl
- Created: 2022-09-04T02:32:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T12:01:53.000Z (over 3 years ago)
- Last Synced: 2026-01-20T21:54:55.970Z (5 months ago)
- Topics: base64, powershell, pwsh
- Language: PowerShell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pwsh__Base64Encoding
Powershell tool to base64 encode and decode strings.
# Usage
```powershell
# import module first
Import-Module ./Base64Encoding.psm1
# now you can use its functions
# encode a string to base64
$base64encoded = ConvertTo-Base64EncodedString "my plaintext string"
echo $base64encoded # outputs "bQB5ACAAcABsAGEAaQBuAHQAZQB4AHQAIABzAHQAcgBpAG4AZwA="
# decode a base64 encoded string
$plaintext = ConvertFrom-Base64EncodedString "bQB5ACAAcABsAGEAaQBuAHQAZQB4AHQAIABzAHQAcgBpAG4AZwA="
echo $plaintext # outputs "my plaintext string"
```