Skip to content

Instantly share code, notes, and snippets.

@Hexhu
Last active August 5, 2021 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hexhu/baa39a3ab65dc935081b8ca82e4c7d01 to your computer and use it in GitHub Desktop.
Save Hexhu/baa39a3ab65dc935081b8ca82e4c7d01 to your computer and use it in GitHub Desktop.
Benchmark each SSL cipher
# https://man.openbsd.org/ssh#Q
SIZE=2GB
dd if=/dev/urandom of=/tmp/${SIZE}.bin bs="$SIZE" count=1 iflag=fullblock;
for cipher in `ssh -Q cipher`; do
echo "${cipher}:";
echo put /tmp/${SIZE}.bin /dev/null | sftp -c "$cipher" root@localhost;
echo;
done;
rm /tmp/${SIZE}.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment