File: generate

package info (click to toggle)
minisign 0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: ansic: 1,532; sh: 10; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 316 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

password=2jafajkfhaskjdfha

# Generate a new key
echo -e "$password\r\n$password" | minisign -Gf

# Sign this script with that key
echo $password | minisign -Sm ${0}

# Verify signature
# It automatically uses the public key 'minisign.pub' in this directory, created during generation
minisign -Vm ${0}