

def build_auth_sub_data(http_request, timestamp, nonce):
    "Creates the data string which must be RSA-signed in secure requests.\n\n  For more details see the documenation on secure AuthSub requests:\n  http://code.google.com/apis/accounts/docs/AuthSub.html#signingrequests\n\n  Args:\n    http_request: The request being made to the server. The Request's URL\n        must be complete before this signature is calculated as any changes\n        to the URL will invalidate the signature.\n    nonce: str Random 64-bit, unsigned number encoded as an ASCII string in\n        decimal format. The nonce/timestamp pair should always be unique to\n        prevent replay attacks.\n    timestamp: Integer representing the time the request is sent. The\n        timestamp should be expressed in number of seconds after January 1,\n        1970 00:00:00 GMT.\n  "
    return ('%s %s %s %s' % (http_request.method, str(http_request.uri), str(timestamp), nonce))

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py build_auth_sub_data/original