Results 1 to 1 of 1

Thread: QCryptographicHash::Sha3_256

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    Berlin
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QCryptographicHash::Sha3_256

    Hi,

    I'm using Qt 5.10.0 and have the following code:

    QCryptographicHash sha3(QCryptographicHash::Sha3_256);
    sha3.addData("aaa", 3)
    QByteArray hash = sha3.result().toHex();

    Now hash is empty. The same produces a hash with Sha1 (or Sha256 or Keccak_256) . Am I doing something obviously wrong? I cannot really believe it's simply not working anymore.

    I wanted to upgrade from SHA-1 to SHA-3 since SHA-1 is considered compromised now. I guess for now I move to Sha256.

    Edit: Actually, I still had a Qt5Core.dll version 5.9.1 in my project. I replaced that with 5.10.0 and now it's working. So, it was 5.9.1 that didn't produce a SHA-3 hash.
    Last edited by berliner; 7th February 2018 at 21:53.

Similar Threads

  1. QCryptographicHash Question
    By qtYoda in forum Qt Programming
    Replies: 0
    Last Post: 23rd November 2011, 17:58
  2. QCryptographicHash an entire file
    By pyramation in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2010, 23:41
  3. QCryptographicHash Question
    By tntcoda in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2008, 09:21
  4. QCryptographicHash
    By live_07 in forum Qt Programming
    Replies: 5
    Last Post: 21st June 2008, 18:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.