on getNonce () { < BLOCK_SIZE { key = sha1 (key)}; for i = 0 to BLOCK_SIZE-1 { if i < string.length(key) { < 0 { s = string.delete (s, sizeof (s), 1)}; //drop the trailing ampersand s = method + "&" + string.urlencode (url) + "&" + string.urlencode (s); wp.newtextobject (s, @scratchpad.sigparamstring); edit (@scratchpad.sigparamstring); local (key = string.urlencode (consumerSecret) + "&" + string.urlencode (tokenSecret)); s = base64.encode (hmac (s, key), 255); clipboard.putvalue (s); wp.newtextobject (s, @scratchpad.sig); edit (@scratchpad.sig); return (s)}; bundle { //test code dialog.alert (getSignature (@scratchpad.requestparams, "http://term.ie/oauth/example/request_token.php", "secret"))} on getTimeStamp () { <