Base58 encoder class. Partially based on: https://github.com/medo64/Medo.
More...
|
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.
|
|
Base58 encoder class. Partially based on: https://github.com/medo64/Medo.
◆ Base58FromFile()
static string BogaNet.Encoder.Base58.Base58FromFile |
( |
string | file | ) |
|
|
static |
Converts a file to a Base58-string.
- Parameters
-
- Returns
- File content as converted Base58-string
- Exceptions
-
◆ Base58FromFileAsync()
static async Task< string > BogaNet.Encoder.Base58.Base58FromFileAsync |
( |
string | file | ) |
|
|
static |
Converts a file to a Base58-string asynchronously.
- Parameters
-
- Returns
- File content as converted Base58-string
- Exceptions
-
◆ FileFromBase58()
static bool BogaNet.Encoder.Base58.FileFromBase58 |
( |
string | file, |
|
|
string | base58string ) |
|
static |
Converts a Base58-string to a file.
- Parameters
-
file | File to write the content of the Base58-string |
base58string | Data as Base58-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FileFromBase58Async()
static async Task< bool > BogaNet.Encoder.Base58.FileFromBase58Async |
( |
string | file, |
|
|
string | base58string ) |
|
static |
Converts a Base58-string to a file asynchronously.
- Parameters
-
file | File to write the content of the Base58-string |
base58string | Data as Base58-string |
- Returns
- True if the operation was successful
- Exceptions
-
◆ FromBase58String()
static byte[] BogaNet.Encoder.Base58.FromBase58String |
( |
string | base58string | ) |
|
|
static |
Converts a Base58-string to a byte-array.
- Parameters
-
base58string | Data as Base58-string |
- Returns
- Data as byte-array
- Exceptions
-
◆ ToBase58String() [1/2]
static string BogaNet.Encoder.Base58.ToBase58String |
( |
byte[] | bytes | ) |
|
|
static |
Converts a byte-array to a Base58-string.
- Parameters
-
- Returns
- Data as encoded Base58-string
- Exceptions
-
◆ 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
-
str | Input string |
encoding | Encoding of the string (optional, default: UTF8) |
- Returns
- String value as converted Base58-string
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Encoder/Encoder/Base58.cs