locked
RSA Loading a PEM Key? RRS feed

  • Question

  • Could some one show me a C# example of how to load a PEM Key, or a DER key
    So far i got PEM to DER function;
        public static byte[] DER(string pem)
        {
            string[] lines = pem.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
            return Convert.FromBase64String(string.Join(string.Empty, lines, 1, lines.Length - 2));
        }


    -Tuck
    Sunday, February 14, 2010 7:30 PM

Answers

All replies