I am working with Openssl 0.9.8k, using the EVP API in my project to encrypt/decrypt data with AES256CBC.
TIll now i am taking the Password input from user using fgets(pwd,pwd_len,stdin)
.
Is there any function available with openssl which facilitates secure password input. I tried searching on net but could not find any.(openssl documentation itself is not sufficient)
Any suggestions or pointers towards any documentation will be highly appreciated.
NOTE:: If there is no function as such with Openssl, can someone please suggest me the possible security loopholes that can be exploited in taking the password in my current approach from stdin using fgets so that i can write my own custom function for this.
many thanks