diff options
author | Friendika <info@friendika.com> | 2011-08-08 21:51:56 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-08 21:51:56 -0700 |
commit | 07c48191b6bbb140d9fca12e50856e62f0d8b6d1 (patch) | |
tree | 62eb82bdaed093bc928be6335afd671c8d6c96f8 | |
parent | df3062c612c3322f9aee8096b2cd92b19357d12d (diff) | |
download | volse-hubzilla-07c48191b6bbb140d9fca12e50856e62f0d8b6d1.tar.gz volse-hubzilla-07c48191b6bbb140d9fca12e50856e62f0d8b6d1.tar.bz2 volse-hubzilla-07c48191b6bbb140d9fca12e50856e62f0d8b6d1.zip |
AES_256_CBC
-rw-r--r-- | include/diaspora.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index eedcad719..316105999 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -16,14 +16,14 @@ function diaspora_base_message($type,$data) { function diaspora_msg_build($msg,$user,$contact,$prvkey,$pubkey) { $a = get_app(); - $inner_aes_key = random_string(16); + $inner_aes_key = random_string(32); $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); - $outer_aes_key = random_string(16); + $outer_aes_key = random_string(32); $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); $handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos('://') + 3); |