zot: specify crypto method

This commit is contained in:
zotlabs
2016-11-20 21:18:38 -08:00
parent dda2ea8fed
commit f926915e56
4 changed files with 12 additions and 7 deletions

View File

@@ -363,7 +363,7 @@ function localize_item(&$item){
if(intval($item['item_obscured'])
&& strlen($item['body']) && (! strpos($item['body'],'data'))) {
$item['body'] = json_encode(crypto_encapsulate($item['body'],get_config('system','pubkey')));
$item['body'] = json_encode(crypto_encapsulate($item['body'],get_config('system','pubkey'), CRYPTO_ALGORITHM));
}
}