What?

Collecting snippets here for benchmarking. Eventually, I want to benchmark Thinkpad L480 vs. Nintento switch vs. Raspi 4, all running Linux. Goal is not to compare bare computing power, I already did that, but computing power together with power consumption: so who computes most for per consumed power?

John the ripper

cd Downloads
wget https://www.openwall.com/john/k/john-1.9.0-jumbo-1.tar.xz
tar xJfv john-1.9.0-jumbo-1.tar.xz 
cd john-1.9.0-jumbo-1/src/
./configure 
make -s clean && make -sj4
cd ../run

# for testing, hash password 'calvin' and see if it gets
# found by john
openssl passwd -6 -salt xyz calvin >mypasswd_test_sha512
./john mypasswd_test_sha512

# if you want to bruteforce hashes from the running system
sudo ./unshadow /etc/passwd /etc/shadow > mypasswd
./john mypasswd

# other hash creation methods
openssl passwd -1 -salt xyz secretpassword >mypasswd_md5
openssl passwd -2 -salt xyz secretpassword >mypasswd_sha256
openssl passwd -6 -salt xyz secretpassword >mypasswd_sha512

Some results, Thinkpad L480

passwd crypt runtime calculations/sec power loaded calculations/Wh
aaaaa sha512 47sec 5053C/s 14.7V/1.9A / 25mAh 202.1k
aaaaa md5 1sec 2273C/s
aaaab md5 241sec 9091C/s

Some results, raspi4/2GB

passwd crypt runtime calculations/sec power loaded calculations/Wh
aaaaa sha512 492sec 485.3C/s 5.07V/1.01A / 142mAh 3.5k
aaaaa md5 17sec 14313C/s 5.07V/1.01A / 3mAh 4771.0k
aaaab md5 3506ec 17120C/s 5.07V/1.01A / 872mAh