---
title: "cipheriv decrypt · RUAL Documentation"
description: "Decrypts the given file using a specific algorithm and key for secure storage"
canonical: https://docs.rual.nl/block-types/files/file_cipher_decrypt
language: en
---

# cipheriv decrypt

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Decrypts the given file using a specific algorithm and key for secure storage

- flow `flow`

- algorithm `value` The algorithm to use

Default `aes-192-cbc`

- key required `value` The key used to encrypt (mostly scrypt output)

- file required `file` The file to be decrypted

- auth tag required `value` The auth tag used during the encryption

- flow `flow`

- success `condition`

- decrypted `file`

- error `value` If an error occured, this pin is filled

A typical wiring for [cipheriv decrypt](https://docs.rual.nl/block-types/files/file_cipher_decrypt): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `key` pin; [get file from assets](https://docs.rual.nl/block-types/files/file_from_assets) feeds the `file` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `auth_tag` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

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

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
