I need a simple string to sha256 generator class. I do not want to build big libraries for that like openSSL or Cripto++ – all I want is to turn strings into sha256. How to create such class or where to get it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Like others have said, I was under the impression that hashing under SHA256 is not trivial enough to simply implement yourself as a subset of a bigger coding project. If you take a look at the wikipedia page for SHA-2, you will notice some pretty intense math. If you would like the actual encryption abstract (the math theory itself), it can be found here. If you’re like most programmers whose emphasis is not in security, then you will probably want to simply use someone else’s tested and tried implementation. You can find a good few here. Let me know if this helped. Sorry I couldn’t answer your question with straight code or something of that nature.