lib: added sha1 on String

Added function to compute the SHA-1 of a String in both its Binary and to hex form.