generate sha1 and md5 for generated metadata