# BR-STO-01

When you supply a hasher without a cipher, or a cipher without a hasher, then the build fails.

Defined in [Store conversations and protect traces](https://docs.piighost.dev/en/domain/operations/storage-and-encryption/#br-sto-01).

## Where the rule lives

- [`require_paired_crypto()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/conversation_memory/base.py#L60)
- [`RedisMemoryConfig.build()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/memory.py#L53)

## Direct tests

- [`tests/config/test_redis_memory.py::TestRedisMemoryConfig::test_half_configured_crypto_raises_config_error`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_redis_memory.py#L69)

## Indirect tests

No indirect test found.

## Used by

- [`RedisConversationMemory.__init__()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/conversation_memory/redis_backend.py#L84)
- [`SqlAlchemyConversationMemory.__init__()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/conversation_memory/sqlalchemy_backend.py#L77)

Read from the code graph graphify builds, at the places the domain documentation gives.
