Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
publickeycipher.php
1
<?php
8
namespace
Bitrix\Main\Security
;
9
13
class
PublicKeyCipher
extends
AsymmetricCipher
14
{
18
protected
function
doEncrypt
($data, $key)
19
{
20
$success = openssl_public_encrypt($data, $out, $key);
21
22
return
$success ? $out :
false
;
23
}
24
28
protected
function
doDecrypt
($data, $key)
29
{
30
$success = openssl_public_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_publickey($key));
41
}
42
}
Bitrix\Main\Security\AsymmetricCipher
Definition
asymmetriccipher.php:11
Bitrix\Main\Security\PublicKeyCipher
Definition
publickeycipher.php:14
Bitrix\Main\Security\PublicKeyCipher\doDecrypt
doDecrypt($data, $key)
Definition
publickeycipher.php:28
Bitrix\Main\Security\PublicKeyCipher\doEncrypt
doEncrypt($data, $key)
Definition
publickeycipher.php:18
Bitrix\Main\Security\PublicKeyCipher\getKeyInfo
getKeyInfo($key)
Definition
publickeycipher.php:38
Bitrix\Main\Security
Definition
asymmetriccipher.php:8
modules
main
lib
security
publickeycipher.php
Создано системой
1.10.0