Share via

Bcrypt and mbed

Yavor Krasyovski 0 Reputation points
2023-06-23T08:57:46.5966667+00:00

I've ran into an issue with Brypt and I could use some help.

Currently our settup for comunicating with our server is the following: the server uses MbedTLS for encryption and decryption and BCrypt on the user. Our keys are PEM formatted.

The issue is that messages encrypted by a public key via BCrypt cannot be decoded by MbedTLS. The process works if we use either of the libraries for encrypt/decrypt both.

As far as I can tell all algorithm settings are the same between the libraries, the padding is the same, the hash is the same.

A strange thing I ran into is that the encrypted messages by BCrypt are not 256 byte sized, but apart from that everything looks as expected.

Are there any known issues with communication between the two libraries? Are there any steps that you can recommend for debugging the issue?

Developer technologies | Universal Windows Platform (UWP)

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.