/var/www/hkosl.com/innoutstorage/webadmin/rsa_crypt.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
    
require_once('check_login.php');

    
//$sql = "select "
    /*set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib0.3.8');

    if (!class_exists('Crypt_RSA')) {
        include('phpseclib0.3.8/Crypt/RSA.php');
    }

    if (!class_exists('Net_SSH2')) {
        include('phpseclib0.3.8/Net/SSH2.php');
    }

    $rsa = new Crypt_RSA();

    extract($rsa->createKey()); // == $rsa->createKey(1024) where 1024 is the key size

    echo $publickey;
    echo "<br><br>";
    echo $privatekey;*/

    //exit;

    
$string1 "";
    
$string2 "";

    if(!empty(
$string1)){
        echo 
rsa_crypt($string11);
    }

    if(!empty(
$string2)){
        echo 
rsa_crypt($string22);
    }
?>