Example #1
0
 public static Base64 From(Binary value)
 {
     return(new Base64(Convert.ToBase64String(value.ToBytes()), value));
 }
Example #2
0
        public static Sha1 Compute(Binary value)
        {
            var hash = new SHA1CryptoServiceProvider().ComputeHash(value.ToBytes());

            return(Sha1.From(Hex.From(Binary.From(hash))));
        }
Example #3
0
 public static Base64 From(Binary value) =>
 new Base64(Convert.ToBase64String(value.ToBytes()), value);
Example #4
0
 public static Hex From(Binary value)
 {
     return(new Hex(BitConverter.ToString(value.ToBytes()).Replace("-", ""), value));
 }