This commit is contained in:
zotlabs 2018-07-19 22:15:50 -07:00
parent ad020db7d8
commit bd8a6d6195
3 changed files with 4 additions and 3 deletions

View file

@ -332,6 +332,7 @@ class Apps {
'Features' => t('Features'),
'Language' => t('Language'),
'Post' => t('Post'),
'ZotPost' => t('ZotPost'),
'Profile Photo' => t('Profile Photo')
);

BIN
images/zot-300.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -453,12 +453,12 @@ function convert_salmon_key($key) {
function z_obscure($s) {
return json_encode(crypto_encapsulate($s,get_config('system','pubkey')));
$algs = crypto_methods();
return json_encode(crypto_encapsulate($s,get_config('system','pubkey'),
(($algs) ? $algs[0] : '')));
}
function z_unobscure($s) {
// if(strpos($s,"{\"") !== 0)
// return $s;
return crypto_unencapsulate(json_decode($s,true),get_config('system','prvkey'));
}