-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96b8656
commit a0565d3
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using SimpleBase; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Ipfs | ||
{ | ||
/// <summary> | ||
/// Base32 encoding designed to be easier for human use and more compact. | ||
/// </summary> | ||
/// <remarks> | ||
/// Commonly referred to as 'z-base-32'. | ||
/// </remarks> | ||
/// <seealso href="https://en.wikipedia.org/wiki/Base32#z-base-32"/> | ||
public static class Base32z | ||
{ | ||
static readonly Base32Alphabet alphabet = | ||
new Base32Alphabet("ybndrfg8ejkmcpqxot1uwisza345h769"); | ||
|
||
/// <summary> | ||
/// The encoder/decoder for z-base-32. | ||
/// </summary> | ||
public static readonly SimpleBase.Base32 Codec = new SimpleBase.Base32(alphabet); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters