Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
privatekeycipher.php
1
<?php
8
namespace
Bitrix\Main\Security
;
9
13
class
PrivateKeyCipher
extends
AsymmetricCipher
14
{
18
protected
function
doEncrypt
($data, $key)
19
{
20
$success = openssl_private_encrypt($data, $out, $key);
21
22
return
$success ? $out :
false
;
23
}
24
28
protected
function
doDecrypt
($data, $key)
29
{
30
$success = openssl_private_decrypt($data, $out, $key);
31
32
return
$success ? $out :
false
;
33
}
34
38
protected
function
getKeyInfo
($key)
39
{
40
return
openssl_pkey_get_details(openssl_get_privatekey($key));
41
}
42
}
Bitrix\Main\Security\AsymmetricCipher
Definition
asymmetriccipher.php:11
Bitrix\Main\Security\PrivateKeyCipher
Definition
privatekeycipher.php:14
Bitrix\Main\Security\PrivateKeyCipher\doDecrypt
doDecrypt($data, $key)
Definition
privatekeycipher.php:28
Bitrix\Main\Security\PrivateKeyCipher\doEncrypt
doEncrypt($data, $key)
Definition
privatekeycipher.php:18
Bitrix\Main\Security\PrivateKeyCipher\getKeyInfo
getKeyInfo($key)
Definition
privatekeycipher.php:38
Bitrix\Main\Security
Definition
asymmetriccipher.php:8
modules
main
lib
security
privatekeycipher.php
Создано системой
1.10.0