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 <riccardovaci...@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 cove...@gmail.com