Here I explain you some advantages of functions proposed:
- AESStream: It is an easy way to do strong encryption of Strings or files.
- SHA-2: Actually U++ includes SHA-1 support. However, from Wikipedia:
SHA-1 is being retired for most government uses; the U.S. National Institute of Standards and Technology says,
"Federal agencies should stop using SHA-1 for...applications that require collision resistance as soon as practical,
and must use the SHA-2 family of hash functions for these applications after 2010"
Thanks to OpenSSL the SHA-2 implementation is very thin and simple.