c program

Program to generate a random password in C

1.0 Introduction Passwords provide a level of security for digital assets. To be effective, passwords need to sufficiently long. random and chosen from a big underlying domain.In this post, we have a C-language program, that takes in number of characters in the password as input, and chooses a random password from printable ASCII characters. The …

Program to generate a random password in C Read More »

How to create a temporary file in Linux

1.0 Temporary Files Quite often, we need temporary files in our programs. Some intermediate data needs to be stored and the file can be discarded when the process terminates. There are multiple ways of creating temporary files in Linux. We can use the O_TMPFILE flag in the open system call and the file is deleted …

How to create a temporary file in Linux Read More »

Signals in Linux

1.0 Signals A signal is a notification delivered to a process by the kernel. A signal indicates that an event has occurred and the process must take note of it. Signals are mostly delivered asynchronously to a process. Whatever the process was doing is suspended and the processing of the signal takes place immediately. 2.0 …

Signals in Linux Read More »