yeet tests and libcrypt

This commit is contained in:
Andreas Bail
2026-08-20 15:54:24 +02:00
parent dcb33d6924
commit f5f65ab030
6 changed files with 3349 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
#Requires AutoHotkey v2
;#Include .\libcrypt.ahk
message := "The quick brown fox jumps over the lazy dog"
salt := "key"
LC_Bin2Ascii(Bin) {
Bin := RegExReplace(Bin, "[^10]")
Loop StrLen(Bin) / 8 {
Asc := 0
for Bit in StrSplit(SubStr(Bin, (A_Index - 1) * 8 + 1, 8))
Asc += Asc + Bit
Out .= Chr(Asc)
}
return Out
}
tst := LC_Bin2Ascii("01100110")
MsgBox(tst)
;MsgBox("SHA256:`t`t" LC_SHA256(message) "`nSHA256 + Salt:`t" LC_SecureSalted(salt, message, "sha256") "`n`n")