🎃 Valiukas

jump to main content

bash: generate secret token

Sep 26, 2022

# Option 1:
openssl rand -base64 128

# Option 2
echo -n '{"alg":"HS256","typ":"JWT"}' | base64 | sed s/\+/-/g | sed 's/\//_/g' | sed -E s/=+$//