Last active
August 5, 2021 07:11
-
-
Save Hexhu/baa39a3ab65dc935081b8ca82e4c7d01 to your computer and use it in GitHub Desktop.
Benchmark each SSL cipher
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
# 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