AES_256_CBC
This commit is contained in:
parent
df3062c612
commit
07c48191b6
1 changed files with 4 additions and 4 deletions
|
@ -16,14 +16,14 @@ function diaspora_base_message($type,$data) {
|
||||||
function diaspora_msg_build($msg,$user,$contact,$prvkey,$pubkey) {
|
function diaspora_msg_build($msg,$user,$contact,$prvkey,$pubkey) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
$inner_aes_key = random_string(16);
|
$inner_aes_key = random_string(32);
|
||||||
$b_inner_aes_key = base64_encode($inner_aes_key);
|
$b_inner_aes_key = base64_encode($inner_aes_key);
|
||||||
$inner_iv = random_string(16);
|
$inner_iv = random_string(32);
|
||||||
$b_inner_iv = base64_encode($inner_iv);
|
$b_inner_iv = base64_encode($inner_iv);
|
||||||
|
|
||||||
$outer_aes_key = random_string(16);
|
$outer_aes_key = random_string(32);
|
||||||
$b_outer_aes_key = base64_encode($outer_aes_key);
|
$b_outer_aes_key = base64_encode($outer_aes_key);
|
||||||
$outer_iv = random_string(16);
|
$outer_iv = random_string(32);
|
||||||
$b_outer_iv = base64_encode($outer_iv);
|
$b_outer_iv = base64_encode($outer_iv);
|
||||||
|
|
||||||
$handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos('://') + 3);
|
$handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos('://') + 3);
|
||||||
|
|
Loading…
Reference in a new issue