github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/hash.md (about) 1 --- 2 title: hash 3 type: processor 4 status: deprecated 5 --- 6 7 <!-- 8 THIS FILE IS AUTOGENERATED! 9 10 To make changes please edit the contents of: 11 lib/processor/hash.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 :::warning DEPRECATED 18 This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives). 19 ::: 20 21 22 <Tabs defaultValue="common" values={[ 23 { label: 'Common', value: 'common', }, 24 { label: 'Advanced', value: 'advanced', }, 25 ]}> 26 27 <TabItem value="common"> 28 29 ```yaml 30 # Common config fields, showing default values 31 label: "" 32 hash: 33 algorithm: sha256 34 key: "" 35 ``` 36 37 </TabItem> 38 <TabItem value="advanced"> 39 40 ```yaml 41 # All config fields, showing default values 42 label: "" 43 hash: 44 algorithm: sha256 45 key: "" 46 parts: [] 47 ``` 48 49 </TabItem> 50 </Tabs> 51 52 ## Fields 53 54 ### `algorithm` 55 56 The hash algorithm to use. 57 58 59 Type: `string` 60 Default: `"sha256"` 61 Options: `sha256`, `sha512`, `sha1`, `xxhash64`, `hmac-sha1`, `hmac-sha256`, `hmac-sha512`, `md5`. 62 63 ### `key` 64 65 key used for HMAC algorithms 66 67 68 Type: `string` 69 Default: `""` 70 71 ### `parts` 72 73 An optional array of message indexes of a batch that the processor should apply to. 74 If left empty all messages are processed. This field is only applicable when 75 batching messages [at the input level](/docs/configuration/batching). 76 77 Indexes can be negative, and if so the part will be selected from the end 78 counting backwards starting from -1. 79 80 81 Type: `array` 82 Default: `[]` 83 84 ## Alternatives 85 86 All functionality of this processor has been superseded by the 87 [bloblang](/docs/components/processors/bloblang) processor. 88