> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/s/sha-1.md).

# SHA-1

```ruby
var sha = frequire('Digest::SHA')
say sha.sha1_hex('Rosetta Code')
```

#### Output:

```
48c98f7e5a6e736d790ab740dfc3f51a61abe2b5
```
