Class Base58
"Base58 is what you get after taking Base62 [a-zA-Z0-9] and removing any character that may induce to error when introduced by hand: 0 (zero), O (uppercase 'o'), I (uppercase 'i'), and l (lowercase 'L'). This concept was introduced to the general public by Flickr".
Inherited Members
Namespace: Acoustics.Shared
Assembly: Acoustics.Shared.dll
Syntax
public class Base58
Remarks
See http://icoloma.blogspot.com.au/2010/03/create-your-own-bitly-using-base58.html and http://dl.dropbox.com/u/1844215/FlickrBaseEncoder.java for more.
Methods
| Improve this Doc View SourceDecode(String)
Convert a link into numbers.
Declaration
public static long Decode(string link)
Parameters
Type | Name | Description |
---|---|---|
String | link | The link. |
Returns
Type | Description |
---|---|
Int64 | Numerical representation of link. |
Encode(Int64)
Convert number into alphanumeric representation.
Declaration
public static string Encode(long num)
Parameters
Type | Name | Description |
---|---|---|
Int64 | num | The num. |
Returns
Type | Description |
---|---|
String | Alphanumeric representation of number. |