On Thu, Sep 02, 2010 at 10:37:03PM +0200, Tom van der Woerdt wrote:
> On 9/2/10 6:46 PM, Ryan wrote:
> > any ideas?
> >
>
> Multiple.
>
> 1. PHP has the hash_hmac function which can do hmac-sha1 for you.
hash_hamc is not always available. You could check with:
if (extension_loaded ('hash')) {
> Spent the day trying to get OAuth working with PHP, curse August the
> 31st, first time I've heard of it, etc,etc. Anyhow I need some help to
> see where I'm going wrong with this code to retireve the auth token
> Please...
>
>function CalcHmacSha1($data,$key) {
>
> $blocksize = 64;
>
On 9/2/10 6:46 PM, Ryan wrote:
> Spent the day trying to get OAuth working with PHP, curse August the
> 31st, first time I've heard of it, etc,etc. Anyhow I need some help to
> see where I'm going wrong with this code to retireve the auth token
> Please...
>
>function CalcHmacSha1($data,$key)
Spent the day trying to get OAuth working with PHP, curse August the
31st, first time I've heard of it, etc,etc. Anyhow I need some help to
see where I'm going wrong with this code to retireve the auth token
Please...
$blocksize) {
$key = pack('H*', $hashfunc($key));
}
$key = str_p