Asn1Utilities.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / Asn1Utilities.cs / 1 / Asn1Utilities.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
namespace Microsoft.InfoCards
{ 
    using System;
    using System.IO; 
    using System.Text; 
    using System.Diagnostics;
    using System.Collections.Generic; 
    using System.Security.Cryptography;
    using System.Security.Cryptography.X509Certificates;
    using System.Globalization;
 
    //
    // Summary: 
    // This is a collection of utilities needed to support the ASN processing of the certificate 
    //
    class Asn1Utilities 
    {
        private Asn1Utilities()
        {
        } 

        // 
        // Summary: 
        // Writes out binary data to a string in the form:
        // 30 5f a1 5d a0 5b 30 59   0_�]�[0Y 
        // 30 57 30 55 16 09 69 6d   0W0U..im
        //
        // Parameters:
        // bytes       - Array of bytes to be converted to a string. 
        //
 
        public static string ToHexDump( byte[] bytes ) 
        {
#if DEBUG 
            StringBuilder sb = new StringBuilder();
            StringBuilder sbtext = new StringBuilder();

            for( int n=0; n

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK