---
title: "sha1 · RUAL Documentation"
description: "RUAL value block."
canonical: https://docs.rual.nl/block-types/value/value_sha1
language: en
---

# sha1

This block is part of the [`value`](https://docs.rual.nl/block-types/value) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

- value required `value`

- hashed `value`

Outputs the SHA-1 digest, as lowercase hex, of ALL in-pin values concatenated in pin order (each coerced to string; unwired pins contribute ""). Extra value pins extend the hashed input, they are not hashed separately. NOT an HMAC and not salted.

A typical wiring for [sha1](https://docs.rual.nl/block-types/value/value_sha1): [reverse geocode](https://docs.rual.nl/block-types/geopoint/geo_point_reverse_geocode) feeds the `value` pin; the `hashed` out pin feeds [set](https://docs.rual.nl/block-types/redis/function_redis_cache_set_key).

![Studio canvas example for the sha1 block: typical wiring for sha1.](https://docs.rual.nl/canvas-examples/value_sha1.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [reverse geocode](https://docs.rual.nl/block-types/geopoint/geo_point_reverse_geocode): feeds into this block. Resolves a geo point to the nearest street, city, province and country. City/province/country are nearest-populated-place; street is the nearest named road (needs the road network loaded).

- [set fields](https://docs.rual.nl/block-types/mutations/mutations_set_bp_field_multiple): this block feeds into it. Generates an array of mutations based on the given filled fields.

- [concatenate values](https://docs.rual.nl/block-types/value/value_concatenate): wired in both directions with this block.

- [get cache key](https://docs.rual.nl/block-types/redis/function_redis_cache_get_exists): this block feeds into it. gets the key and returns true or false based of its existence, makes it easier for cache-management in flows.

- [set](https://docs.rual.nl/block-types/redis/function_redis_cache_set_key): this block feeds into it. Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type.

- [fields](https://docs.rual.nl/block-types/query/query_bool_term_fields): this block feeds into it.

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
