HashCalc

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

HashCalc

02 Oct 2013, 05:55

HashCalc
Calculate hash from string, hex or file via AutoHotkey.


Source
HashCalc.ahk (GitHub)


Examples
Image
Image
Image
Image


Feature
- Generate hash value from string or file
- Generate Password-Based Key Derivation Function 2 (PBKDF2)
- Secure-Salted function
- Verify hash


Functions
- MD2, MD4, MD5
- SHA-1
- SHA-256, SHA-384, SHA-512
- HMAC
- PBKDF2


Questions / Bugs / Issues
If you notice any kind of bugs or issues, report them here. Same for any kind of questions.


Copyright and License
MIT License
Last edited by jNizM on 12 Mar 2014, 05:30, edited 16 times in total.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

08 Oct 2013, 01:12

Update: v0.2
- HashFromFile()
- Checkbox

Update: v0.3
- Disable Salt if 'File' is active

Update: v0.4
- Changed Hash functions to CalcAddrHash(), CalcStringHash() & CalcFileHash()
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

04 Feb 2014, 07:54

Update: v0.5
- Drag&Drop File into Gui

Update: v0.6
- Change Salt to HMAC funtion
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

05 Feb 2014, 06:05

Update: v0.7
- CalcHexHash()
Last edited by jNizM on 11 Mar 2014, 09:43, edited 1 time in total.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

11 Mar 2014, 09:43

Update: v0.8
- Bug fixes and improvements

Update: v0.9
- Added hash function CRC32
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Best-Code-in-Use
Posts: 184
Joined: 01 Dec 2015, 05:13
Location: Germany

Thank You for sharing this

28 Apr 2016, 00:44

Hello jNizM,

that's exactly what I wanted. I use from Time to Time an Online Service to generate the MD5 Hash String, but Offline it ensures a better sense of Security for me.
Its very useful, thank You!
Greetings Best-Code-in-Use
rmbrusvil

Re: HashCalc v0.9

23 May 2018, 04:51

Good Morning,

Thanks you very much, your calc works very well and I could verify two raspberry pi image files that I had SHA256 checksum

Congrats

.Ramon.
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc v0.9

11 Feb 2020, 10:31

Edit
- rewritten
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Madryn
Posts: 1
Joined: 07 May 2020, 01:08

Re: HashCalc

07 May 2020, 01:22

Hello jNizM,

really useful program with nice UI. Thank you for making it!!

I made a small improvement:
If you add following lines in the "WINDOW EVENTS" section, a droped file is added in the File-tab.

Code: Select all

;Drag&Drop Files to Input GUI
GuiDropFiles:
Loop %A_GuiEvent%, 1 					;1 = Loop folders and files
	If InStr( A_LoopFileAttrib, "D" )		;D==Folder -> exit
	 {
		MsgBox, Folder not accepted. `n %A_GuiEvent%
	 }
	Else
	 {
		GuiControl,, HASH_FILE, %A_GuiEvent%
		FileGetSize, FILE_SIZE, %A_GuiEvent%
		GuiControl,, HASH_FILE_SIZE, % "File Size: " StrFormatByteSizeEx(FILE_SIZE, 0x1)
	 }
return
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

07 May 2020, 06:24

Update: v0.9.2
- Small update
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

Re: HashCalc

08 May 2020, 11:12

Is it possible to hide a string within a script by using HashCalc? The purpose would be to make it more difficult for the average user to obtain the source code.
Is there a way to un-hash the string while the script is running? A guess that would be a function call?
Forgive all my questions, I'm trying to learn about cryptography.
For example....

Code: Select all

; Hashed String using SHA-256
;msgbox, This is my first message
msgbox, bb0653dcf092d83846740ede19c2b6bd9b785070765fe4d7059c119d71f25632
return

Image
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

11 May 2020, 02:14

Encryption is a two-way function. What is encrypted can be decrypted with the proper key. Hashing, however, is a one-way function that scrambles plain text to produce a unique message digest. With a properly designed algorithm, there is no way to reverse the hashing process to reveal the original password.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
littlegandhi1199
Posts: 195
Joined: 29 Aug 2016, 23:58

Re: HashCalc

11 May 2020, 15:14

Looks pretty good!
I'm sure I can find a use for that someday. Saving it now.
Thanks for sharing
Script Backups on every Execution :mrgreen:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155

Scrabble Solver 4-15 letter word outputs ( :crazy: # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: HashCalc

04 Nov 2021, 06:24

[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
lwx228
Posts: 49
Joined: 24 Apr 2022, 08:52

Re: HashCalc

05 May 2023, 08:39

jNizM wrote:
07 May 2020, 06:24
Update: v0.9.2
- Small update
I don't need the form interface, just copy the result of converting this lhabceq6jdr to sha256 to the paste board.How do I modify the AutoHotkey script?

AutoHotkey V1

Thanks!


Image
Image
Attachments
2023-05-05_21-27-45.png
2023-05-05_21-27-45.png (80.42 KiB) Viewed 1277 times
lwx228
Posts: 49
Joined: 24 Apr 2022, 08:52

Re: HashCalc

05 May 2023, 08:42

lhabceq6jdr

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: gwarble and 224 guests