sha_ref.bat 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. call %PYTHON%\python -c "print 'DA39A3EE5E6B4B0D3255BFEF95601890AFD80709'.decode('hex')" > sha_sha1_empty.enc
  2. call %OPENSSL%\openssl dgst -sha1 -c -binary -out sha_sha1_3 plaintext_2
  3. ren sha_sha1_3 sha_sha1_3.enc
  4. call %OPENSSL%\openssl dgst -sha1 -c -binary -out sha_sha1_56 plaintext_3
  5. ren sha_sha1_56 sha_sha1_56.enc
  6. call %OPENSSL%\openssl dgst -sha1 -c -binary -out sha_sha1_64 plaintext_4
  7. ren sha_sha1_64 sha_sha1_64.enc
  8. call %OPENSSL%\openssl dgst -sha1 -c -binary -out sha_sha1_128 plaintext_5
  9. ren sha_sha1_128 sha_sha1_128.enc
  10. call %OPENSSL%\openssl dgst -sha256 -c -binary -out sha_sha256_3 plaintext_2
  11. ren sha_sha256_3 sha_sha256_3.enc
  12. call %OPENSSL%\openssl dgst -sha256 -c -binary -out sha_sha256_56 plaintext_3
  13. ren sha_sha256_56 sha_sha256_56.enc
  14. call %OPENSSL%\openssl dgst -sha256 -c -binary -out sha_sha256_64 plaintext_4
  15. ren sha_sha256_64 sha_sha256_64.enc
  16. call %OPENSSL%\openssl dgst -sha256 -c -binary -out sha_sha256_128 plaintext_5
  17. ren sha_sha256_128 sha_sha256_128.enc
  18. call %OPENSSL%\openssl dgst -sha512 -c -binary -out sha_sha512_3 plaintext_2
  19. ren sha_sha512_3 sha_sha512_3.enc
  20. call %OPENSSL%\openssl dgst -sha512 -c -binary -out sha_sha512_56 plaintext_3
  21. ren sha_sha512_56 sha_sha512_56.enc
  22. call %OPENSSL%\openssl dgst -sha512 -c -binary -out sha_sha512_64 plaintext_4
  23. ren sha_sha512_64 sha_sha512_64.enc
  24. call %OPENSSL%\openssl dgst -sha512 -c -binary -out sha_sha512_128 plaintext_5
  25. ren sha_sha512_128 sha_sha512_128.enc