Base62 1.1.0

Base62 encoder and decoder for .NET for URL shortening and/or obfuscation.

Install-Package Base62 -Version 1.1.0
dotnet add package Base62 --version 1.1.0
<PackageReference Include="Base62" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Base62 --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Base62

Base62 encoder and decoder based on Base62 for PHP for .NET. This library is useful for converting data into shortened strings good for URL shortening and/or obfuscating auto-incrementing resource ids from being exposed through RESTful APIs.

Nuget

Compatibility

Written to be netstandard compliant, this library should be able to be used cross-platform. See netstandard details for more information.

Usage

var base62Converter = new Base62Converter();

var encoded = base62Converter.Encode("120");

Console.WriteLine(encoded);

var decoded = base62Converter.Decode(encoded);

Console.WriteLine(decoded);

// output is:
//    "DWjo"
//    "120"

Character sets

By default Base62 uses [0-9A-Za-z] character set but can be alternated to use [0-9a-zA-Z] through the constructor.

new Base62Converter(Base62Converter.CharacterSet.INVERTED);

...

License

The MIT LIcense (MIT).

Base62

Base62 encoder and decoder based on Base62 for PHP for .NET. This library is useful for converting data into shortened strings good for URL shortening and/or obfuscating auto-incrementing resource ids from being exposed through RESTful APIs.

Nuget

Compatibility

Written to be netstandard compliant, this library should be able to be used cross-platform. See netstandard details for more information.

Usage

var base62Converter = new Base62Converter();

var encoded = base62Converter.Encode("120");

Console.WriteLine(encoded);

var decoded = base62Converter.Decode(encoded);

Console.WriteLine(decoded);

// output is:
//    "DWjo"
//    "120"

Character sets

By default Base62 uses [0-9A-Za-z] character set but can be alternated to use [0-9a-zA-Z] through the constructor.

new Base62Converter(Base62Converter.CharacterSet.INVERTED);

...

License

The MIT LIcense (MIT).

Release Notes

UTF8 support

  • .NETFramework 2.0

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 1.1

  • .NETStandard 1.2

  • .NETStandard 1.3

  • .NETStandard 1.4

  • .NETStandard 1.5

  • .NETStandard 1.6

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 702 7/16/2019
1.0.0 21,659 10/9/2017