예제 #1
0
 public static Base64 From(Binary value)
 {
     return(new Base64(Convert.ToBase64String(value.ToBytes()), value));
 }
예제 #2
0
파일: Sha1.cs 프로젝트: snickroger/Totem
        public static Sha1 Compute(Binary value)
        {
            var hash = new SHA1CryptoServiceProvider().ComputeHash(value.ToBytes());

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