I need to encrypt a char*
string in C using blowfish or twofish in Windows.
I can't find a straight forward solution for that.
I don't want to install something like OpenSSL; I need it be a standalone as possible. Unfortunately Googling for C code results in C# and C++ code.
Can anyone give me a straightforward function for encryption/decryption?
Have you taken a look at "https://www.schneier.com/twofish-download.html" on Bruce Schneier web site? He has reference implementations, as well as optimized implementations of the algorithm. It's been a few years since I looked at it, but you might find it useful.