Esempio n. 1
0
        bool TestBase32Enc(string src, string expected)
        {
            var enc    = Encoding.ASCII.GetBytes(src);
            var encb32 = BufUtils.ToBase32String(enc);

            return(encb32 == expected.ToLower());
        }
Esempio n. 2
0
        public override string ToString()
        {
            var result = new StringBuilder();

            result.AppendLine("EGAesBuildRequestRecord " + BufUtils.ToBase32String(ToPeer16));
            return(result.ToString());
        }
Esempio n. 3
0
 private I2PIdentHash(BufLen hash)
 {
     Hash           = hash;
     CachedHash     = Hash.GetHashCode();
     Id32ShortField = $"[{BufUtils.ToBase32String( Hash ).Substring( 0, 5 )}]";
 }