Skip to content

Commit

Permalink
Added binary in hash; Fixed UI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RallyTuning committed Mar 16, 2023
1 parent b0d54ad commit 6846018
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 17 deletions.
35 changes: 20 additions & 15 deletions Enigma/Classes/Hashy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,38 @@ internal string Calc()

StringBuilder SB = new();

SB.AppendLine("# MD5");
SB.AppendLine($"HEX: {TempBytesMD5.ToHex()}");
SB.AppendLine($"BASE64: {TempBytesMD5.ToBase64()}");
SB.AppendLine("[MD5]");
SB.AppendLine($"- HEX: {TempBytesMD5.ToHex()}");
SB.AppendLine($"- BASE64: {TempBytesMD5.ToBase64()}");
SB.AppendLine($"- BINARY: {TempBytesMD5.ToBinary()}");
//SB.AppendLine($"STRING: {TempBytesMD5.ToRString()}");
SB.AppendLine();

SB.AppendLine("# SHA1");
SB.AppendLine($"HEX: {TempBytesSHA1.ToHex()}");
SB.AppendLine($"BASE64: {TempBytesSHA1.ToBase64()}");
SB.AppendLine("[SHA1]");
SB.AppendLine($"- HEX: {TempBytesSHA1.ToHex()}");
SB.AppendLine($"- BASE64: {TempBytesSHA1.ToBase64()}");
SB.AppendLine($"- BINARY: {TempBytesSHA1.ToBinary()}");
//SB.AppendLine($"STRING: {TempBytesSHA1.ToRString()}");
SB.AppendLine();

SB.AppendLine("# SHA256");
SB.AppendLine($"HEX: {TempBytesSHA256.ToHex()}");
SB.AppendLine($"BASE64: {TempBytesSHA256.ToBase64()}");
SB.AppendLine("[SHA256]");
SB.AppendLine($"- HEX: {TempBytesSHA256.ToHex()}");
SB.AppendLine($"- BASE64: {TempBytesSHA256.ToBase64()}");
SB.AppendLine($"- BINARY: {TempBytesSHA256.ToBinary()}");
//SB.AppendLine($"STRING: {TempBytesSHA256.ToRString()}");
SB.AppendLine();

SB.AppendLine("# SHA384");
SB.AppendLine($"HEX: {TempBytesSHA384.ToHex()}");
SB.AppendLine($"BASE64: {TempBytesSHA384.ToBase64()}");
SB.AppendLine("[SHA384]");
SB.AppendLine($"- HEX: {TempBytesSHA384.ToHex()}");
SB.AppendLine($"- BASE64: {TempBytesSHA384.ToBase64()}");
SB.AppendLine($"- BINARY: {TempBytesSHA384.ToBinary()}");
//SB.AppendLine($"STRING: {TempBytesSHA384.ToRString()}");
SB.AppendLine();

SB.AppendLine("# SHA512");
SB.AppendLine($"HEX: {TempBytesSHA512.ToHex()}");
SB.AppendLine($"BASE64: {TempBytesSHA512.ToBase64()}");
SB.AppendLine("[SHA512]");
SB.AppendLine($"- HEX: {TempBytesSHA512.ToHex()}");
SB.AppendLine($"- BASE64: {TempBytesSHA512.ToBase64()}");
SB.AppendLine($"- BINARY: {TempBytesSHA512.ToBinary()}");
//SB.AppendLine($"STRING: {TempBytesSHA512.ToRString()}");

return SB.ToString();
Expand Down
3 changes: 3 additions & 0 deletions Enigma/Enigma.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Version>0.2.0</Version>
<AssemblyVersion>0.2.0</AssemblyVersion>
<FileVersion>0.2.0</FileVersion>
</PropertyGroup>

</Project>
5 changes: 4 additions & 1 deletion Enigma/Forms/Frm_Decrypt.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Enigma/Forms/Frm_Encrypt.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Enigma/Forms/Frm_Hash.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6846018

Please # to comment.