selamlar, qr kodu taradığında notlar kısmında açılmasını fakat açılmadan önce nota şifre koymak istiyorum yani ben qr koduna herhangi bir link yerine text ekleyeceğim ama açmadan önce şifre soracak bunu nasıl yapacağım.

<?php

class QrCode {
    //URL OF GOOGLE CHART API
    private $apiUrl = 'http://chart.apis.google.com/chart';
    // DATA TO CREATE QR CODE
    private $data;

    // Function which is used to generate the TEXT type of QR Code.
    public function TEXT($text) {
        $this->data = $text;
    }

   
    //Function which is used to save the qrcode image file.
    public function QRCODE($size = 400, $filename = null) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $this->apiUrl);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, "chs={$size}x{$size}&cht=qr&chl=" . urlencode($this->data));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_TIMEOUT, 30);
        $img = curl_exec($ch);
        curl_close($ch);
        if ($img) {
            if ($filename) {
                if (!preg_match("#\.png$#i", $filename)) {
                    $filename .= ".png";
                }
                return file_put_contents($filename, $img);
            } else {
                header("Content-type: image/png");
                print $img;
                return true;
            }
        }
        return false;
    }

}

// Create object
$qc = new QRCODE();
// Create Text Code
$qc->TEXT("metin içeriği");
// Save QR Code
$qc->QRCODE(400,"test.png");

?>