X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=spec%2Fzot-2012.txt;h=3d939bab73653c7b95d13a82d84885a2c95ecde2;hb=c1edfa24784cf741e7d8a2c11463801df724d9ca;hp=3b8d3272d5fbccf59bbd2da39a13f00d244dff20;hpb=9dc51113477e315470c37e0f81728e91575a3963;p=friendica.git diff --git a/spec/zot-2012.txt b/spec/zot-2012.txt index 3b8d3272d5..3d939bab73 100644 --- a/spec/zot-2012.txt +++ b/spec/zot-2012.txt @@ -11,12 +11,12 @@ First create a global unique userid Site userid: https://macgirvin.com/1 -$guuid = base64url_encode(hash('whirlpool','https://macgirvin.com/1.' . mt_rand(1000000,9999999),1); +$guuid = Strings::base64UrlEncode(hash('whirlpool','https://macgirvin.com/1.' . mt_rand(1000000,9999999),1); Then create a hashed site destination. -$gduid = base64url_encode(hash('whirlpool', $guuid . 'https://macgirvin.com',1); +$gduid = Strings::base64UrlEncode(hash('whirlpool', $guuid . 'https://macgirvin.com',1); These two keys will identify you as a person+site pair in the future. You will also obtain a password upon introducing yourself to a site. @@ -66,7 +66,7 @@ POST https://example.com/post 'person' => $guuid 'address' => $new_gduid 'site' => 'https://newsite.com' -'info' => 'mike@macgirvin.com' +'info' => 'mike@newsite.com' 'pass' => me_encrypt($gduid . '.' . $pass) } @@ -161,9 +161,10 @@ Returns: Callback -------- -POST https://macgirvin.com +POST https://macgirvin.com/post { +'type' => 'retrieve' 'retrieve' => $post_id 'challenge' => you_encrypt('abc123') 'verify' => me_encrypt('xyz456' . '.' . $gduid)