コード例 #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();
        }
コード例 #2
0
ファイル: QETag.cs プロジェクト: 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();
        }