Blowfish C++ does not correctly encrypt/decrypt.. why..?

前端 未结 2 910
一个人的身影
一个人的身影 2021-01-26 07:19

I have this piece of test code that uses Blowfish (openssl/blowfish.h) to encrypt, then decrypt a string. But when it comes out again, it hasn\'t been decrypted properly. Can an

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-26 08:07

    From BF_ecb_encrypt man page:

    It encrypts or decrypts the first 64 bits of in using the key key, putting the result in out.

    Read the docs.

提交回复
热议问题