Пример #1
0
        public virtual void SetUp()
        {
            new EncodingUtil().setEncoding("UTF8");
            password = "******";
            error    = new Error();
            hexa     = new HexaEncoder();
            pd       = new PasswordDerivation();

            /* SCRYPT */
            N              = 16384;
            r              = 8;
            p              = 1;
            keyLenght      = 256;
            saltScrypt     = "123456";
            expectedScrypt = "Yc4uLDXRam2HNQxFdEJWkNYADNWgelNIidOmFE8G3G9G9j6/l/fXP43ErypBMZGs+6PLVPBPRop2pHWWIhUg4hXDoM8+fsp10wBoV3p06yxxdZu7LV19gcgwgL2tnMTN/H8Y7YYM9KpFwdFqMXbIX4DPN2hrL6DAXxNIYJO7Pcm1l9qPrOwpsZZjE032nYlXch6t8/4HRxWFOFRl8t5UjtILEyFdg1w3kLlYzP46XJV1IqGEMyFjeQbtz/c7MteZmID0aSxLtoZJPF3TA41vs09hLlhG/AoMiVQ+EXsp3vZZzg7t4RNrWfuLd2H+oFEqeEUNUisUoB8IWmyAZgn2QQ==";
            /* BCRYPT */
            cost           = 6;
            saltBcrypt     = "0c6a8a8235bb90219d004aa4056ec884";
            expectedBcrypt = "XoHha7SLqyY2AKgIIetMdjYBM5bizqPc";
            /* ARGON2 */
            iterations     = 1;
            parallelism    = 2;
            memory         = 4;
            hashLength     = 32;
            saltArgon2     = "14ae8da01afea8700c2358dcef7c5358d9021282bd88663a4562f59fb74d22ee";
            argon2Version  = new string[] { "ARGON2_VERSION_10", "ARGON2_VERSION_13" };
            argon2HashType = new string[] { "ARGON2_d", "ARGON2_i", "ARGON2_id" };
            argon2Results  = new string[] { "f9hF4rzwC9AvfFMK8ZHvKoQeipc7OUQ/dBV4nBer57U=", "QuNCd8sy8STFTBeylfaUVWAN8w3PDl0L94rr9TqaK/g=", "El6fozCF2xSzdcrfR0QO8U1Zmh4OuRZPwufAvqXcLiY=", "xvlSYizqgM93gmi7cTDvkXda41QDj6fTaCC2cpltt3E=", "jDKqkLzOaxFQ2vHwB3/UQiSI2wO+2cDk6Y1VQwSXzz4=", "A8icyy1A7VlunnJKBZXJl/BkNmVQ5FlMznCNKS1YJCM=" };
        }
Пример #2
0
 public virtual void SetUp()
 {
     expected_plainText = "hello world";
     expected_hexaText  = "68656C6C6F20776F726C64";
     hexa = new HexaEncoder();
 }