Soldato
- Joined
- 26 Nov 2003
- Posts
- 6,674
- Location
- East Sussex
Hi there, hoping someone can help me with this.
I've been asked to modify an encryption routine for a clients software that uses windows cryptography provider to encode a software licence before distribution.
The problem with the existing code is that the output doesn't "change enough".
For example, the string "Ocuk Rocks" encrypts as "123456789".
The string "OcUK Rokks" encrypts as "123456689", only a very small portion of the resultant text actually changes.
The client would like it if even a tony change in the string resulted in near-total change to the encoded text.
I do not know how to achieve this, and would greatly appreciate any advice
Code uses function chain: CryptAcquireContext, CryptCreateHash, CryptHashData (hashes the hardcoded passphrase), CryptDeriveKey, CryptEncrypt.
Alternatively, any recommended forums for asking this question?
Thankee.
I've been asked to modify an encryption routine for a clients software that uses windows cryptography provider to encode a software licence before distribution.
The problem with the existing code is that the output doesn't "change enough".
For example, the string "Ocuk Rocks" encrypts as "123456789".
The string "OcUK Rokks" encrypts as "123456689", only a very small portion of the resultant text actually changes.
The client would like it if even a tony change in the string resulted in near-total change to the encoded text.
I do not know how to achieve this, and would greatly appreciate any advice

Code uses function chain: CryptAcquireContext, CryptCreateHash, CryptHashData (hashes the hardcoded passphrase), CryptDeriveKey, CryptEncrypt.
Alternatively, any recommended forums for asking this question?
Thankee.
Last edited: