I'm creating a simple hashing program and wish to use the SHA hash in
it. I was wondering if there was an easy way to do that. In Ruby you
can just say:
require "Digest"
sha_hex = Digest::SHA512. hexdigest("some string")
print sha_hex
Is there a comparable way to do this in c++? I would like to have the
speed it offers instead of having to wait for ruby.
Thanks!
it. I was wondering if there was an easy way to do that. In Ruby you
can just say:
require "Digest"
sha_hex = Digest::SHA512. hexdigest("some string")
print sha_hex
Is there a comparable way to do this in c++? I would like to have the
speed it offers instead of having to wait for ruby.
Thanks!
Comment