This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test ! -e 5_digit_primes.txt.xz; then | |
echo 5_digit_primes.txt.xz does not exist | |
echo $0 requires this file | |
echo Please generate it with the following command | |
echo "seq 10007 99991|factor|grep '^\([^:]*\): \1$'|cut -d: -f1|xz -9e >5_digit_primes.txt.xz" | |
exit 2 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$length = 10; | |
if ($argc > 1) { | |
if ($argv[1] == '-h' || $argv[1] == '--help') { | |
echo basename($argv[0]) . ' [-h|--help] [length]' . PHP_EOL; | |
echo 'length defaults to 10' . PHP_EOL; | |
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Source of random data | |
#DEV=/dev/urandom | |
#DEV=/dev/random | |
#DEV=/dev/hwrng | |
DEV=/var/run/rtl_entropy.fifo | |
# Remap unused characters | |
# OWASP will no longer look like alphanum |
NewerOlder