You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Riccardo Vacirca <ri...@yahoo.it.INVALID> on 2021/01/25 16:23:22 UTC
Implement hmac using APR
Hi everyone
is it possible to implement the following code using Apache APR library? I can't find code examples. Thanks
digest = base64encode(
hmac("sha256",
"secret",
"GET+/users/username/account+20apr201312:59:24+123456"))
Re: Implement hmac using APR
Posted by Riccardo Vacirca <ri...@yahoo.it.INVALID>.
Thanks Eric, i will take a look
> Il giorno 25 gen 2021, alle ore 17:53, Eric Covener <co...@gmail.com> ha scritto:
>
> See apr_crypto_key() in apr-util 1.6.x and later. I think you might
> need 1.7.x and later to do this specifically for
> APR_CRYPTO_KTYPE_HMAC.
>
> Your APR will need crypto support enabled which adds a dependency on
> some platform crypto library (like openssl) The platform crypto
> library does the low-level stuff.
>
> On Mon, Jan 25, 2021 at 11:23 AM Riccardo Vacirca
> <ri...@yahoo.it.invalid> wrote:
>>
>> Hi everyone
>> is it possible to implement the following code using Apache APR library? I can't find code examples. Thanks
>>
>> digest = base64encode(
>> hmac("sha256",
>> "secret",
>> "GET+/users/username/account+20apr201312:59:24+123456"))
>
>
>
> --
> Eric Covener
> covener@gmail.com
Re: Implement hmac using APR
Posted by Eric Covener <co...@gmail.com>.
See apr_crypto_key() in apr-util 1.6.x and later. I think you might
need 1.7.x and later to do this specifically for
APR_CRYPTO_KTYPE_HMAC.
Your APR will need crypto support enabled which adds a dependency on
some platform crypto library (like openssl) The platform crypto
library does the low-level stuff.
On Mon, Jan 25, 2021 at 11:23 AM Riccardo Vacirca
<ri...@yahoo.it.invalid> wrote:
>
> Hi everyone
> is it possible to implement the following code using Apache APR library? I can't find code examples. Thanks
>
> digest = base64encode(
> hmac("sha256",
> "secret",
> "GET+/users/username/account+20apr201312:59:24+123456"))
--
Eric Covener
covener@gmail.com