crypt function and link error “undefined reference to 'crypt'”

后端 未结 6 1437
别跟我提以往
别跟我提以往 2020-12-11 18:34

I have used the crypt function in c to encrypt the given string. I have written the following code,

#include
#include

int mai         


        
6条回答
  •  無奈伤痛
    2020-12-11 19:13

    crypt() uses DES which is extremely insecure and probably older than you 12 years older than you.

    I suggest you use a serious encryption algorithm, such as AES. Many libraries offer such encryption; OpenSSL (crypto.lib) is a good choice for example.

    Not answering your actual question since a lot of people already did

提交回复
热议问题