public static Base64 From(Binary value) { return(new Base64(Convert.ToBase64String(value.ToBytes()), value)); }
public static Sha1 Compute(Binary value) { var hash = new SHA1CryptoServiceProvider().ComputeHash(value.ToBytes()); return(Sha1.From(Hex.From(Binary.From(hash)))); }
public static Base64 From(Binary value) => new Base64(Convert.ToBase64String(value.ToBytes()), value);
public static Hex From(Binary value) { return(new Hex(BitConverter.ToString(value.ToBytes()).Replace("-", ""), value)); }