Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHA-1 hash bug with "Treat each line as a separate string" enabled #13812

Closed
donho opened this issue Jun 20, 2023 · 0 comments
Closed

SHA-1 hash bug with "Treat each line as a separate string" enabled #13812

donho opened this issue Jun 20, 2023 · 0 comments

Comments

@donho
Copy link
Member

donho commented Jun 20, 2023

Description of the Issue

SHA-1 hash result should be 20 bytes (40 characters). However, when "Treat each line as a separate string" is enabled, SHA-1 hash result is 32 bytes (64 characters).

Steps to Reproduce the Issue

  1. Launch SHA-1 dialog via menu Tools->SHA-1->Generate...
  2. Check "Treat each line as a separate string" in the opened dialog.
  3. Type whatever.

Expected Behavior

20 bytes (40 characters) appears as SHA-1 hash result

Actual Behavior

32 bytes (64characters) appears as SHA-1 hash result (40 SHA-1 result with additional 24 times of '0' characters as suffix)

Debug Information

Notepad++ v8.5.4 (64-bit)
Build time : Jun 17 2023 - 20:42:45
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 11 Home (64-bit)
OS Version : 22H2
OS Build : 22621.1848
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant