Skip to content

Make sure that padding is used in Crypto#745

Open
CucumisSativus wants to merge 1 commit intoDiUS:masterfrom
CucumisSativus:feature/fix-crypto
Open

Make sure that padding is used in Crypto#745
CucumisSativus wants to merge 1 commit intoDiUS:masterfrom
CucumisSativus:feature/fix-crypto

Conversation

@CucumisSativus
Copy link

In some cases it's possible to have MD5 hash (and possibly other as well) with the first byte set to 0. In this case it gets removed, while converting to BigInteger and the hex string has 31 characters. To make sure that it works as expected, we need to guarantee proper padding.

In some cases it's possible to have MD5 hash (and possibly other as well) with the first byte set to 0. In this case it gets removed, while converting to BigInteger and the hex string has 31 characters. To make sure that it works as expected, we need to guarantee proper padding.
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 this pull request may close these issues.

1 participant