Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

Missing randomization in cyphertext #8

Open
velchev opened this issue Mar 4, 2014 · 0 comments
Open

Missing randomization in cyphertext #8

velchev opened this issue Mar 4, 2014 · 0 comments

Comments

@velchev
Copy link

velchev commented Mar 4, 2014

Hi guys, the project works perfectly but I noticed one bit issue.
When someone encrypts one and the same plaintext will get one and the same cyphertext. This means that if someone listens in the middle - the bad Eve she will be able to guess what has been sent.

Normally the password will never change for an application and I assume that this could be used to encrypt url requests for example - small length of strings. In such use I do not think that is secure enough.

What should be done is to introduce salt - random length. Something which is done in C# here: http://www.obviex.com/samples/encryptionwithsalt.aspx

I need that for a personal project and need to encrypt and decrypt this random cyphertext in iOS app and on web server with C#. Will try to implement that in objective-c and contribute if possible to your project.

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

No branches or pull requests

1 participant