Пример #1
0
        public void HmacSha512Test()
        {
            var signature = HMACSHA512HashingProvider.Signature("image", "alexinea");

            Assert.Equal("5761F399848FD4E1C2A6DAA3C5EF03A8478B430667A1F706C39338925A93F14B782F64C831FF8F54C3CB7EF6A2BF6A29B091A9A20620E3B2AB7DCD7676CFFAAF", signature);
        }
Пример #2
0
 public void Test_HmacSha512()
 {
     var signature = HMACSHA512HashingProvider.Signature("image", "jianxuanbing");
     Output.WriteLine(signature);
     Assert.Equal("4CE29097986F619D54F0C7F31BEE2C1667B95781CA42A3D0C97B18DB32FD0EA36EDB1CEB5EE53493A36BA6613C17068918FAFC28B05CBD180D4D5A11CFD30952", signature);
 }