yeet tests and libcrypt
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user