Hi, how can I decode an ASN.1 cipher?
There is a code that encodes in ASN.1. And I do not know how to decode
If someone knows how to do this in C ++. You can drop the code in this language too.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography; namespace Clipher_Ans_1 { class Program { static void Main(string[] args) { Console.WriteLine("Write text"); string str = (Console.ReadLine()); byte[] bytes = new byte[str.Length]; bytes = Encoding.Default.GetBytes(str); AsnEncodedData asndata = new AsnEncodedData(bytes); Console.WriteLine(asndata.Format(true)); Console.WriteLine("___________\n"); } } }