| 
									
										
										
										
											2017-08-10 17:18:22 +02:00
										 |  |  | --- | 
					
						
							|  |  |  | title: sha | 
					
						
							|  |  |  | # linktitle: sha
 | 
					
						
							|  |  |  | description: Hashes the given input and returns either an SHA1 or SHA256 checksum. | 
					
						
							|  |  |  | godocref: | 
					
						
							|  |  |  | date: 2017-02-01 | 
					
						
							|  |  |  | publishdate: 2017-02-01 | 
					
						
							|  |  |  | lastmod: 2017-02-01 | 
					
						
							|  |  |  | categories: [functions] | 
					
						
							|  |  |  | menu: | 
					
						
							|  |  |  |   docs: | 
					
						
							|  |  |  |     parent: "functions" | 
					
						
							| 
									
										
										
										
											2017-09-21 19:03:00 +02:00
										 |  |  | keywords: [sha,checksum] | 
					
						
							| 
									
										
										
										
											2017-08-10 17:18:22 +02:00
										 |  |  | signature: ["sha1 INPUT", "sha256 INPUT"] | 
					
						
							|  |  |  | workson: [] | 
					
						
							|  |  |  | hugoversion: | 
					
						
							| 
									
										
										
										
											2019-05-25 10:41:23 +02:00
										 |  |  | relatedfuncs: [md5] | 
					
						
							| 
									
										
										
										
											2017-08-10 17:18:22 +02:00
										 |  |  | deprecated: false | 
					
						
							| 
									
										
										
										
											2019-05-25 10:41:23 +02:00
										 |  |  | aliases: [sha1, sha256] | 
					
						
							| 
									
										
										
										
											2017-08-10 17:18:22 +02:00
										 |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `sha1` hashes the given input and returns its SHA1 checksum. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | {{ sha1 "Hello world, gophers!" }} | 
					
						
							|  |  |  | <!-- returns the string "c8b5b0e33d408246e30f53e32b8f7627a7a649d4" --> | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `sha256` hashes the given input and returns its SHA256 checksum. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | {{ sha256 "Hello world, gophers!" }} | 
					
						
							|  |  |  | <!-- returns the string "6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46" --> | 
					
						
							|  |  |  | ``` |