Proyectos de Subversion LeadersLinked - Services

Rev

Rev 333 | Rev 343 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 333 Rev 341
Línea 24... Línea 24...
24
use LeadersLinked\Mapper\NetworkMapper;
24
use LeadersLinked\Mapper\NetworkMapper;
25
use LeadersLinked\Library\Functions;
25
use LeadersLinked\Library\Functions;
26
use LeadersLinked\Model\Network;
26
use LeadersLinked\Model\Network;
Línea 27... Línea 27...
27
 
27
 
-
 
28
use LeadersLinked\Library\ExternalCredentials;
Línea 28... Línea 29...
28
use LeadersLinked\Library\ExternalCredentials;
29
use Nullix\CryptoJsAes\CryptoJsAes;
29
 
30
 
30
class HomeController extends AbstractActionController
31
class HomeController extends AbstractActionController
31
{
32
{
Línea 76... Línea 77...
76
        $this->cache        = $cache;
77
        $this->cache        = $cache;
77
        $this->logger       = $logger;
78
        $this->logger       = $logger;
78
        $this->config       = $config;
79
        $this->config       = $config;
79
        $this->translator   = $translator;
80
        $this->translator   = $translator;
80
    }
81
    }
-
 
82
    
-
 
83
    public function cryptoAction()
-
 
84
    {
-
 
85
        header('Content-type: text/plain');
-
 
86
        
-
 
87
        
-
 
88
        $email = '{"ct":"MxcdNyQIs5e1x/VIJDzUyQ==","iv":"e072d32e43857d019f0e0ad6e6708bb7","s":"5d59eb8a4544be8a"}';
-
 
89
        $password  = '{"ct":"QwKU32hZgbWFU3QK5ozoAg==","iv":"92601439892aa6e1145c147f7075e760","s":"943c93123a8d82bf"}';
-
 
90
        $aes = 'HP8Rc6vBnr2CJyVG'; 
-
 
91
        
-
 
92
        echo "Email = $email \r\n";
-
 
93
        echo "Password = $password \r\n";
-
 
94
        echo "AES = $aes \r\n\r\n";
-
 
95
        
-
 
96
        $emailDecrypt  = CryptoJsAes::decrypt($email, $aes);
-
 
97
        $passwordDecrypt  = CryptoJsAes::decrypt($password, $aes);
-
 
98
        
-
 
99
        echo "EmailDecrypt = $emailDecrypt \r\n";
-
 
100
        echo "PasswordDecrypt = $passwordDecrypt \r\n";
-
 
101
        
-
 
102
        exit;
-
 
103
    }
Línea 81... Línea 104...
81
 
104
 
82
    
105
    
83
    public function storageAction()
106
    public function storageAction()