Results 1 to 4 of 4

Thread: C++ bcrypt

  1. #1
    Join Date
    Apr 2007
    Beans
    13

    C++ bcrypt

    I'm doing a quick little C++ app on Ubuntu and was wondering if crypt or something like that is around that supports blowfish hashing method like bcrypt? If someone could point me to lib, docs etc... something would be helpful.

    Thanks.

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: C++ bcrypt

    I use http://www.cryptopp.com/ in some projects.

  3. #3
    Join Date
    Apr 2007
    Beans
    13

    Re: C++ bcrypt

    Quote Originally Posted by spjackson View Post
    I use http://www.cryptopp.com/ in some projects.
    Just checking that out, while I do see blowfish under block ciphers, it doesn't look like it supports bcrypt hashing?

  4. #4
    Join Date
    Apr 2007
    Beans
    13

    Re: C++ bcrypt

    To be honest I though I could do this with crypt so I tried something like this:

    Code:
    crypt(argv[1], "$2a$10$randomgensalthere$")
    however it never seems to error but never gives any output at all :/ where as all the other key derivations seem to work just fine :/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •