Ejemplo n.º 1
0
    public void Argon_Hash_CHUKWA_V2()
    {
        var value = "0305a0dbd6bf05cf16e503f3a66f78007cbf34144332ecbfc22ed95c8700383b309ace1923a0964b00000008ba939a62724c0d7581fce5761e9d8a0e6a1c3f924fdd8493d1115649c05eb601".HexToByteArray();
        var hash  = new byte[32];

        Cryptonight.ArgonHash(value, hash, AR2_CHUKWA_V2, 10);

        var result = hash.ToHexString();

        Assert.Equal("77cf6958b3536e1f9f0d1ea165f22811ca7bc487ea9f52030b5050c17fcdd8f5", result);
    }
Ejemplo n.º 2
0
    public void Argon_Hash_WRKZ()
    {
        var value = "0305a0dbd6bf05cf16e503f3a66f78007cbf34144332ecbfc22ed95c8700383b309ace1923a0964b00000008ba939a62724c0d7581fce5761e9d8a0e6a1c3f924fdd8493d1115649c05eb601".HexToByteArray();
        var hash  = new byte[32];

        Cryptonight.ArgonHash(value, hash, AR2_WRKZ, 10);

        var result = hash.ToHexString();

        Assert.Equal("35e083d4b9c64c2a68820a431f61311998a8cd1864dba4077e25b7f121d54bd1", result);
    }
Ejemplo n.º 3
0
    public void Argon_Hash_CHUKWA()
    {
        var value = "0305a0dbd6bf05cf16e503f3a66f78007cbf34144332ecbfc22ed95c8700383b309ace1923a0964b00000008ba939a62724c0d7581fce5761e9d8a0e6a1c3f924fdd8493d1115649c05eb601".HexToByteArray();
        var hash  = new byte[32];

        Cryptonight.ArgonHash(value, hash, AR2_CHUKWA, 10);

        var result = hash.ToHexString();

        Assert.Equal("c158a105ae75c7561cfd029083a47a87653d51f914128e21c1971d8b10c49034", result);
    }