Base64UrlCore 1.0.0

base64 encode/decode for URL applications.

There is a newer version of this package available.
See the version list below for details.
Install-Package Base64UrlCore -Version 1.0.0
dotnet add package Base64UrlCore --version 1.0.0
<PackageReference Include="Base64UrlCore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Base64UrlCore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Converting to, and from, base64url

base64urls offer you to run Base64UrlCore on the CLI.

Install

Install-Package Base64UrlCore

Library Usage

Decode

base64url encode input. Input should be a string or a Buffer.

Base64Url.Decode("QyMgaXMgYXdlc29tZQ==");
// C# is awesome

Encode

Convert a base64url encoded string into a raw string. The encoding argument can be used if the input is a string that's not utf8.

Base64Url.Encode("C# is awesome.");
// QyMgaXMgYXdlc29tZS4=

Escape

Convert a base64 encoded string to a base64url encoded string.

Base64Url.Escape("This+is/goingto+escape==");
// "This-is_goingto-escape" 

Unescape

Convert a base64url encoded string to a base64 encoded string.

Base64Url.Unescape("This-is_goingto-escape");
// "This+is/goingto+escape=="

PadString

Add padding to encoded string.

Base64Url.PadString("aG9nZW1vZ2U");
// aG9nZW1vZ2U=

RemovePadding

Remove padding from encoded string.

Base64Url.RemovePadding("MQ==");
// MQ

License

MIT

Converting to, and from, base64url

base64urls offer you to run Base64UrlCore on the CLI.

Install

Install-Package Base64UrlCore

Library Usage

Decode

base64url encode input. Input should be a string or a Buffer.

Base64Url.Decode("QyMgaXMgYXdlc29tZQ==");
// C# is awesome

Encode

Convert a base64url encoded string into a raw string. The encoding argument can be used if the input is a string that's not utf8.

Base64Url.Encode("C# is awesome.");
// QyMgaXMgYXdlc29tZS4=

Escape

Convert a base64 encoded string to a base64url encoded string.

Base64Url.Escape("This+is/goingto+escape==");
// "This-is_goingto-escape" 

Unescape

Convert a base64url encoded string to a base64 encoded string.

Base64Url.Unescape("This-is_goingto-escape");
// "This+is/goingto+escape=="

PadString

Add padding to encoded string.

Base64Url.PadString("aG9nZW1vZ2U");
// aG9nZW1vZ2U=

RemovePadding

Remove padding from encoded string.

Base64Url.RemovePadding("MQ==");
// MQ

License

MIT

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 120 3/9/2020
1.1.1 228 5/14/2019
1.1.0 213 3/17/2019
1.0.0 198 2/27/2019
0.0.1 177 3/28/2019