Changes between Version 2 and Version 3 of GuiRpcProtocol
- Timestamp:
- Mar 31, 2008, 10:46:31 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GuiRpcProtocol
v2 v3 12 12 Authentication on the RPC protocol is based on a challenge-response system. To initiate the authentication process, send an <code><auth1/></code> command: 13 13 {{{ 14 #!xml 14 15 <boinc_gui_rpc_request> 15 16 <auth1/> … … 19 20 The response will be the authentication challenge: 20 21 {{{ 22 #!xml 21 23 <boinc_gui_rpc_reply> 22 24 <nonce>1198959933.057125</nonce> … … 26 28 The value of `nonce` is to be used as a salt with the password. It is randomly generated for each request. To calculate the response, concatenate the nonce and the password (nonce first), then calculate the MD5 hash of the result, i.e: {{{md5(nonce+password)}}}. Finally, send an `<auth2>` request with the calculated hash, in hexadecimal format. 27 29 {{{ 30 #!xml 28 31 <boinc_gui_rpc_request> 29 32 <auth2>