This repository has been archived on 2025-03-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
SimpleGPGKeygen/simplegpgkeygen.cmd
2025-03-26 15:37:01 +03:00

30 lines
No EOL
1.1 KiB
Batchfile

:: Simple GPG keygen
:: By Michael Agarkov (https://codeberg.org/MichaelAgarkov)
::
:: Copyright (c) 2025 Michael Agarkov
::
:: Permission to use, copy, modify, and/or distribute this software for any
:: purpose with or without fee is hereby granted.
::
:: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
:: REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
:: AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
:: INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
:: LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
:: OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
:: PERFORMANCE OF THIS SOFTWARE.
@echo off
title Simple GPG keygen
echo Simple GPG keygen
echo Note that this script generates a GPG key pair with properties set in "keyproperties.txt".
echo.
echo Press any key to generate a key pair...
pause >nul
echo.
echo Please follow GPG instructions while the keys are being generated...
gpg --batch --gen-key keyproperties.txt
echo.
echo Keys in GPG:
gpg --list-secret-keys --keyid-format LONG
pause