RNCryptor / RNCryptor-cpp

C++ implementation of Rob Napier's RNCryptor
MIT License
13 stars 9 forks source link

fix a bug in `string RNEncryptor::generateIv(int length)` #4

Closed gekailin closed 8 years ago

gekailin commented 8 years ago

The original code may produce a string shorter than length, because the generated buffer may contain some '\0' bytes.

curtisdf commented 8 years ago

Thanks @gekailin.