所以我正在學習 Windows Batchfile 中的散列,我想知道是否有一種簡單的方法來取消散列文本。
為了散列文本,我一直在使用這個:
set /p input=Text:
echo %input%>%temp%\hashinput.tmp
CertUtil -hashfile %temp%\hashinput.tmp sha256 | findstr /v "hash">%temp%\hashoutput.tmp
set /p output=<%temp%\hashoutput.tmp
del %temp%\hashinput.tmp
del %temp%\hashoutput.tmp
echo %output%
它所做的只是將用戶輸入發送到一個臨時檔案,對其進行散列處理,然后將其發送到一個臨時檔案,并在洗掉檔案之前為輸出設定一個變數。
環顧四周后,我一直無法找到使用 CertUtil 或任何其他命令對文本進行散列處理的方法。如果有一種簡單的方法,我很想知道如何。
uj5u.com熱心網友回復:
沒有可行的方法從hash獲取原始輸入,這就是重點。您可以通過嘗試所有可能的輸入來嘗試蠻力,但這不切實際,它會花費太多時間。
散列的另一個名稱是單向函式......
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/382326.html
