Skip to content

Commit 607d3d6

Browse files
authored
Create generate_random_base64.sh
1 parent b1e2d3b commit 607d3d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generate_random_base64.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
echo "$(id -un)-$(ps ax | grep $$ | grep -v grep | awk '{ print $2 }')-$(id)-$(date +%s%N)-$(head /dev/urandom | LC_CTYPE=C tr -dc '[:alnum:]' | head -c 2048 ; echo $(dd if=/dev/urandom bs=1k count=1 2>/dev/null))" | base64

0 commit comments

Comments
 (0)