aboutsummaryrefslogtreecommitdiff
path: root/05/genkey.sh
blob: 83ad3bb4fe70f318a8825fe3408aa5f82b2ce2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
## genkey.sh --- generate pseudo-random AES-256 key
#
# Copyright (C) 2026 by Martin Michalec <martin@michalec.dev>
#
# SPDX-License-Identifier: MIT
#
## Commentary:
#
## Code:

set -xeu

umask 077

openssl rand -hex 32 > aes-256.key

# genkey.sh ends here