Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Usage: qetag <path>-----" + @"c:\test\MyTest.txt");
            string path = Console.ReadLine();
            QETag  etag = new QETag();

            try {
                Console.WriteLine(etag.calcETag(path));
            } catch (Exception ex) {
                Console.WriteLine("Unsupported algorithm:" + ex.Message);
            }

            Console.WriteLine("algorithm-hash-etag");
            Console.Read();
        }
Exemplo n.º 2
0
Arquivo: QETag.cs Projeto: qiniu/qetag
        static void Main(string[] args)
        {
            Console.WriteLine("Usage: qetag <path>-----" + @"c:\test\MyTest.txt");
            string path = Console.ReadLine();
            QETag etag = new QETag();
            try {
                Console.WriteLine(etag.calcETag(path));
            } catch (Exception ex) {
                Console.WriteLine("Unsupported algorithm:" + ex.Message);
            }

            Console.WriteLine("algorithm-hash-etag");
            Console.Read();
        }