Správičky 2 781 Blogy 945 Fórum 18 325

hash core

photo
novacik01
5. 4. 2017 16:49:25
Body: 25
Najaktívnejší č.: 222

hash core

nema niekdo skusenosti s hashom pre vub ecard, vyhadzuje mi stale secure code

@{

    String orgClientId = "1075xxxx";

    String orgOid = "3358";

    String orgAmount = "0.12";

    String orgOkUrl = "http://xxx.sk/PayCardSucess";

    String orgFailUrl = "http://xxx.sk/PayCardWrong";

    String orgTransactionType = "Auth";

    String orgInstallment = "2";

    String orgRnd = "asdf";

    String orgMsAuthType = "";

    String orgCurrency = "978";
 
    // escaped values

    String clientId = orgClientId.Replace("\\", "\\\\").Replace("|", "\\|");

    String oid = orgOid.Replace("\\", "\\\\").Replace("|", "\\|");

    String amount = orgAmount.Replace("\\", "\\\\").Replace("|", "\\|");

    String okUrl = orgOkUrl.Replace("\\", "\\\\").Replace("|", "\\|");

    String failUrl = orgFailUrl.Replace("\\", "\\\\").Replace("|", "\\|");

    String transactionType = orgTransactionType.Replace("\\", "\\\\").Replace("|", "\\|");

    String installment = orgInstallment.Replace("\\", "\\\\").Replace("|", "\\|");

    String rnd = orgRnd.Replace("\\", "\\\\").Replace("|", "\\|");

    String msAuthType = orgMsAuthType.Replace("\\", "\\\\").Replace("|", "\\|");

    String currency = orgCurrency.Replace("\\", "\\\\").Replace("|", "\\|");

    String storeKey = "KAmasutra11\\|".Replace("\\", "\\\\").Replace("|", "\\|");

    String plaintext = clientId + "|" + oid + "|" + amount + "|" + okUrl + "|" + failUrl + " | " + transactionType + "|" + installment + "|" + rnd + "|" + "|" + "|" + "|" + currency + "|" + storeKey;
 
    //  System.Security.Cryptography.SHA512 sha = new System.Security.Cryptography.SHA512CryptoServiceProvider();
    var sha = System.Security.Cryptography.SHA512.Create();

    byte[] hashbytes = System.Text.Encoding.GetEncoding("ISO-8859-9").GetBytes(plaintext);
    byte[] inputbytes = sha.ComputeHash(hashbytes);

    String hash = Convert.ToBase64String(inputbytes);


}


<center>
       <div>
        <form method="post" name="pay_form" action="https://vub.eway2pay.comxxxx">
            <div>
                <input type="text" name="clientid" value="@clientId">
                     <input type="text" name="storetype" value="3d_pay_hosting">
                   
                     <input type="text" name="trantype" value="@transactionType">
                     <input type="text" name="amount" value="@amount">
                     <input type="text" name="currency" value="@currency">
                     <input type="text" name="oid" value="@oid">
                     <input type="text" size="50" name="okUrl" value="@okUrl">
                     <input type="text" size="50" name="failUrl" value="@failUrl">
                     <input type="text" name="lang" value="@lang">
                     <input type="text" size="100" name="hash" value="@hash">
                     <input type="text" name="encoding" value="utf-8">
                    <input type="text" name="rnd" value="@rnd">
                     <input type="text" name="instalment" value="@installment">
                     <input type="text" name="hashAlgorithm" value="ver2">
                       
        <input type="submit" value="I confirm my order" class="exclusive_large" />
    </div>

 

[Reakcia]

photo
harrison314
7. 4. 2017 7:24:15
Body: 875
Najaktívnejší č.: 24

RE: hash core

Ak mas nejaku ukazkovu aplikaciu alebo kod pre plny .NET, tak porovnaj vysledky hasu, stringov atd.

[Reakcia]

photo
novacik01
7. 4. 2017 15:21:23
Body: 25
Najaktívnejší č.: 222

RE: hash core

Ktorú banku a akú platobnú bránu by ste doporucovali pre net.

[Reakcia]

photo
novacik01
7. 4. 2017 21:20:01
Body: 25
Najaktívnejší č.: 222

RE: hash core

vub banka nema urobeny funkcny sample pre asp.net c#

[Reakcia]

photo
novacik01
9. 4. 2017 14:50:40
Body: 25
Najaktívnejší č.: 222

RE: hash core

najlepsia bude  platba kartou gopay

[Reakcia]



Najaktívnejší užívatelia
1. 37710 b. photo vlko
2. 21025 b. photo T
3. 15955 b. photo spigi
4. 15450 b. photo Anonymous
5. 11110 b. photo dudok
6. 8965 b. photo Liero
7. 6885 b. photo siro
8. 6245 b. photo slavof
9. 5340 b. photo duracellko
10. 4430 b. photo xxxmatko