base64 encoded sha1() string in openssl

Discussion in 'C Programming' started by Ram Prasad, Dec 22, 2011.

  1. Ram  Prasad

    Ram Prasad Guest

    Is there a function in openssl that will directly give me the base64
    encoded sha1 string
    like the perl function sha1_base64();
    Ram Prasad, Dec 22, 2011
    #1
    1. Advertising

  2. Kenny McCormack, Dec 22, 2011
    #2
    1. Advertising

  3. Ram  Prasad

    tom st denis Guest

    On Dec 22, 9:28 am, Ram Prasad <> wrote:
    > Is there a function in openssl that will directly give me the base64
    > encoded sha1 string
    > like the perl function sha1_base64();


    Might be but I doubt it. Usually having the base64 encoding of a hash
    isn't a useful thing to lug around. Instead you usually want to have
    the base64 encoding of a signature or fully enveloped message.

    You might want to consult the OpenSSL folk about how to accomplish
    this with their library.

    Tom
    tom st denis, Dec 22, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    5,822
    Thomas J. Gritzan
    Sep 22, 2006
  2. LMZ
    Replies:
    5
    Views:
    522
    Martin v. Löwis
    Apr 6, 2008
  3. Adam Tauno Williams
    Replies:
    2
    Views:
    857
    Stefan Behnel
    Dec 30, 2010
  4. Kenneth Priisholm
    Replies:
    1
    Views:
    390
    Paul Glavich [MVP - ASP.NET]
    May 11, 2004
  5. ben *******

    sha1/base64

    ben *******, Aug 12, 2009, in forum: Ruby
    Replies:
    4
    Views:
    180
    Brian Candler
    Aug 12, 2009
Loading...

Share This Page