From cf63f8cccf92428eef240e8336a22164002da1a6 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 17 Dec 2024 10:50:06 +0100 Subject: Add command to generate random strings --- functions/gtoken.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 functions/gtoken.fish (limited to 'functions') diff --git a/functions/gtoken.fish b/functions/gtoken.fish new file mode 100644 index 0000000..5fed9dd --- /dev/null +++ b/functions/gtoken.fish @@ -0,0 +1,4 @@ + +function gtoken -d "Create a token randomly from Python" + python -c "import string;import random;print(''.join(random.choice(string.ascii_letters + string.digits) for i in range($argv[1])))" +end -- cgit v1.3-2-g11bf