/// <summary> /// Decodes the given base64 string /// </summary> /// <param name="value">The base64 encoded string of a Guid</param> /// <returns>A new Guid</returns> public static Guid Decode(string value) { return(new Guid(Base62Converter.FromBase62String(value))); }
public static string ToBase62(this byte[] buffer) { return(Base62Converter.ToBase62String(buffer)); }
/// <summary> /// Encodes the given Guid as a base62 string. /// </summary> /// <param name="guid">The Guid to encode</param> /// <returns></returns> public static string Encode(Guid guid) { return(Base62Converter.ToBase62String(guid.ToByteArray())); }