I'm porting a portion of a .NET application to Qt on Linux. I am trying to replicate the results of a .NET function to create the SHA-256 hash of a password + salt. The .NET code is
return new SHA256Managed().ComputeHash(buffer);
Where buffer is the salt concatenated to the password.
I considered several crytopgraphic libraries including QCA and Botan and after reading several comments, I decided to try Botan. However, I'm not finding the right place in the documentation to perform the equivalent of the code listed above.
Can someone point me to the place in the fine manual or a tutorial that discusses the use of Botan to create a simple hash? I've been google searching for a couple hours without finding a solution. There are many example of SHA-256 hashing for pipes and streams but I have yet to find the example of a simple hash calculation.