lib: added sha1 on String

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>