sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:


Hi Monks

Is there any perl module in perl which supports the algorithm AKAv1-MD5?

Plz suggest?

Regd's
Sanjay
  • Comment on Is there any module in perl which supports the algorithm AKAv1-MD5?

Replies are listed 'Best First'.
Re: Is there any module in perl which supports the algorithm AKAv1-MD5?
by dHarry (Abbot) on Jan 08, 2009 at 10:24 UTC

    No | Maybe

    I don't think there is a Perl module on CPAN explicitly supporting AKAv1-MD5? However maybe you can use an implementation of DIGEST-MD5 SASL. (Isn't AKA a derivative of/identical to this?). Look on CPAN for SASL implementations. HTH

    Out of curiosity: Why is MD5 not good enough for you?

    Update
    There are some open source implementations around, e.g. this one in C: pjsip.org

      Isn't AKA a derivative of/identical to this?
      From a quick glance over the RFC it seems that AKAv1 is just a specific way to concatenate the strings and then do a regular MD5 calculation.

      If this is true, it shouldn't be all that hard to write it yourself.


      Hi Dharry

      Many many thanks for your reply. I have visited pjsip.org. There i have found the module related to the Akv1-MD5.But it is in C-language. I have downloaded that module.But where to keep that module, can i place it in my perl lib (or to install it). How i can use that module in my perl program. Plz suggest.

      Regd's
      Sanjay
        You should learn perlxs.
        XS is an interface description file format used to create an extension interface between Perl and C code (or a C library) which one wishes to use with Perl.
        perlxstut is a good starting point.
        --
        No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

        The code is in the C language. Perl is not C. You will need to translate the code from the C language into equivalent code in the Perl language.

        I found Inline fairly straightforward to use.

A reply falls below the community's threshold of quality. You may see it by logging in.