* https://github.com/friendica/friendica/blob/master/spec/dfrn2_contact_confirmation.png
*/
+use Friendica\App;
+
require_once('include/enotify.php');
require_once('include/group.php');
require_once('include/Probe.php');
*
*/
- $src_aes_key = random_string();
+ $src_aes_key = openssl_random_pseudo_bytes(64);
$result = '';
- openssl_private_encrypt($dfrn_id,$result,$user[0]['prvkey']);
+ openssl_private_encrypt($dfrn_id, $result, $user[0]['prvkey']);
$params['dfrn_id'] = bin2hex($result);
$params['public_key'] = $public_key;