I constantly have to do little 10-line code snippets for customer websites. Other people in my office are now asking me to put the code in DLLs, as the code sometimes contains a password for a 3rd party webservice, or something else of similar security. Is it actually any more secure if compiled to a DLL?
The puts() function in C/C++ is used to write a line or string to the output( stdout ) stream. It prints the passed string with a newline and returns an integer value.
the printf() function is used to print both strings and variables to the screen while the puts() function only permits you to print a string only to your screen.
💪 Ace Coding Interviews. The puts function in C is used to write a line or string to the output stream ( stdout ) that is up to, but does not include, the null character.
The puts() function is used to print the string on the console which is previously read by using gets() or scanf() function. The puts() function returns an integer value representing the number of characters being printed on the console.
No. It's classic security by obscurity and can be easily revealed in a decompiler.
It is probably slightly more secure, but not by very much. If you are not taking steps to encrypt the passwords, it is only slightly harder to open a DLL in a binary editor and hunt for passwords if you suspect there's something interesting in the DLL.
Either approach is not very secure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With