BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.Encoder.Base58 Class Reference

Base58 encoder class. Partially based on: https://github.com/medo64/Medo. More...

Static Public Member Functions

static byte[] FromBase58String (string base58string)
 Converts a Base58-string to a byte-array.
 
static string ToBase58String (byte[] bytes)
 Converts a byte-array to a Base58-string.
 
static string ToBase58String (string str, Encoding? encoding=null)
 Converts the value of a string to a Base58-string.
 
static string Base58FromFile (string file)
 Converts a file to a Base58-string.
 
static async Task< string > Base58FromFileAsync (string file)
 Converts a file to a Base58-string asynchronously.
 
static bool FileFromBase58 (string file, string base58string)
 Converts a Base58-string to a file.
 
static async Task< bool > FileFromBase58Async (string file, string base58string)
 Converts a Base58-string to a file asynchronously.
 

Detailed Description

Base58 encoder class. Partially based on: https://github.com/medo64/Medo.

Member Function Documentation

◆ Base58FromFile()

static string BogaNet.Encoder.Base58.Base58FromFile ( string file)
static

Converts a file to a Base58-string.

Parameters
fileFile to convert
Returns
File content as converted Base58-string
Exceptions
Exception

◆ Base58FromFileAsync()

static async Task< string > BogaNet.Encoder.Base58.Base58FromFileAsync ( string file)
static

Converts a file to a Base58-string asynchronously.

Parameters
fileFile to convert
Returns
File content as converted Base58-string
Exceptions
Exception

◆ FileFromBase58()

static bool BogaNet.Encoder.Base58.FileFromBase58 ( string file,
string base58string )
static

Converts a Base58-string to a file.

Parameters
fileFile to write the content of the Base58-string
base58stringData as Base58-string
Returns
True if the operation was successful
Exceptions
Exception

◆ FileFromBase58Async()

static async Task< bool > BogaNet.Encoder.Base58.FileFromBase58Async ( string file,
string base58string )
static

Converts a Base58-string to a file asynchronously.

Parameters
fileFile to write the content of the Base58-string
base58stringData as Base58-string
Returns
True if the operation was successful
Exceptions
Exception

◆ FromBase58String()

static byte[] BogaNet.Encoder.Base58.FromBase58String ( string base58string)
static

Converts a Base58-string to a byte-array.

Parameters
base58stringData as Base58-string
Returns
Data as byte-array
Exceptions
ArgumentNullException

◆ ToBase58String() [1/2]

static string BogaNet.Encoder.Base58.ToBase58String ( byte[] bytes)
static

Converts a byte-array to a Base58-string.

Parameters
bytesData as byte-array
Returns
Data as encoded Base58-string
Exceptions
ArgumentNullException

◆ ToBase58String() [2/2]

static string BogaNet.Encoder.Base58.ToBase58String ( string str,
Encoding? encoding = null )
static

Converts the value of a string to a Base58-string.

Parameters
strInput string
encodingEncoding of the string (optional, default: UTF8)
Returns
String value as converted Base58-string
Exceptions
ArgumentNullException

The documentation for this class was generated from the following file: