Little PS module for base64 encoding and decoding.
Import-Module .\base64-powershell\base64.psm1-
ConvertTo-Base64:
- This function encodes text into Base64 format.
- It takes one argument: the text to be encoded.
- It returns a Base64-encoded string.
- Example usage:
"Hello, World!" | ConvertTo-Base64
-
ConvertFrom-Base64:
- This function decodes a Base64 string back into plain text.
- It takes one argument: a Base64-encoded string.
- It returns the original text.
- Example usage:
"SGVsbG8sIFdvcmxkIQ==" | ConvertFrom-Base64