bool TestBase32Enc(string src, string expected) { var enc = Encoding.ASCII.GetBytes(src); var encb32 = BufUtils.ToBase32String(enc); return(encb32 == expected.ToLower()); }
public override string ToString() { var result = new StringBuilder(); result.AppendLine("EGAesBuildRequestRecord " + BufUtils.ToBase32String(ToPeer16)); return(result.ToString()); }
private I2PIdentHash(BufLen hash) { Hash = hash; CachedHash = Hash.GetHashCode(); Id32ShortField = $"[{BufUtils.ToBase32String( Hash ).Substring( 0, 5 )}]"; }