Jaromil 187a627022 Fix tomb-kdb-pbkdf2 helper for multiplatform build
Avoid EOF being missed when reading in the password. Replace undefined
char-to-int comparison with a int-to-int one. Fix #360
2019-08-22 11:47:58 +02:00
..
2018-02-03 21:23:07 +01:00
2014-11-16 15:21:11 +01:00

BUILD
------

Just type make.
You need a recent development version of libgcrypt installed.
On Debian 7 (not earlier) the libgcrypt11-dev package works:
 # apt-get install libgcrypt11-dev

PLANS
------

While this can be useful for general purpose, it specially fits tomb, and it's designed for easy integration and compilation.

Binary name will then be:
tomb-kdb-${algo}
tomb-kdb-${algo}-gensalt
tomb-kdb-${algo}-getiter
tomb-kdb-hexencode

Base64 vs hexencode
-------------------

While base64 is easier to use (shell command, more compact), pbkdf2 use hex
in its specifications.
This could be solved with an option (-x for hex, defaults to base64)