Esempio n. 1
0
 /**
  * Получаем RSA ключи
  *
  * @return object
  */
 public static function getKeys()
 {
     if (null === self::$_rsaKeys) {
         self::$_rsaKeys = (object) System_Rsa_Keygen::Generate();
         $self = new self();
         $self->_saveKeysToSession(self::$_rsaKeys);
     }
     return self::$_rsaKeys;
 }
Esempio n. 2
0
 public function indexAction()
 {
     if ($this->_user->getUserName() == false) {
         $this->view->showError = $this->getRequest()->isPost();
         $this->view->username = $this->_getParam('username');
         $keys = Modules_Access_Framework_Auth_Plugin_RequestRsa::getKeys();
         $this->view->hash = $keys->public . '~' . $keys->module;
     }
 }