Random password generator in C

In this article, we will discuss how to generate a random password of a given length consists of any characters.

Approach:

  • The below-given program involves basic concepts like variables, data types, array, loop, etc.
  • Follow the below steps to solve this problem:
    • Take the length of the password and declare a character array of that length to store that password.
    • Declare character array of all the capital letters, small letters, numbers, special characters.
    • Now according to the program below, respective if-else gets executed and a random password gets generated.
[mai mult...]

How to fix “default Gateway is not available” error in Windows

The “Default gateway is not available” is a common error message which indicates that your device can’t find a default gateway and disconnects the internet automatically. The default gateway routes the network traffic from your device to other networks. It commonly shows that your system has incorrect ISP settings or IP addresses. Moreover, there can be a few more reasons behind the “Default Gateway Is Not Available” error, such as:

  • Network connection-related issues include loose cables, malfunctioned devices, faulty network interfaces, etc.
  • Your system has misconfigured network files.
  • Problems with the DHCP server.
  • Misconfigured network manager and firewall settings.
  • Errors with the DNS server.
  • Problems with the currently installed drivers.
[mai mult...]

How to open Google Chrome using Command Prompt on Windows 11?

Command prompt is a Windows-based utility that allows one to manage system files and folders, access core features as well as remove stubborn software. This can also allow the system to go directly into the websites open on a Google Chrome browser. But sometimes, one does not need to. For example, for developers, custom scripts.

A command can be set to open Google Chrome at a given time, or a web page using Task Scheduler. The command can run both the standard and incognito modes of Chrome.

[mai mult...]

How to Delete a File or Folder using CMD?

In some cases, for whatever reason, Windows will make sure that the provided file is used by the system and prevent it from being deleted. This file situation is very frustrating, especially if you know the file is not in use.

If you are having trouble in deleting any file or folder directly by right-clicking, then you can delete it using cmd. The commands below delete the specific file or folder and place them in the recycle bin:

  • del
  • rmdir
[mai mult...]

How to show all the previously connected WiFi Networks using CMD in Windows?

Wi-Fi(Wireless Fidelity) Launched in September 1997 is affiliated with WLAN (Wireless Local Area Network). It is a wireless communication technology that uses radio waves to provide a high-speed network and Internet connection.
Sometimes there is a need to know the previously connected WiFi networks to get details on some network. There is a wide range of Softwares available for the same. But, this can be done easily with the use of the command prompt of the windows.

[mai mult...]

Getting hash of a file using CMD

A cryptographic hash is a fixed size string (or text) that is used as an identifier/fingerprint of some data. These are particularly useful in determining the integrity of files after they are transferred over a communication channel. Hashes are even utilized by certain OS-level processes for their working. The command processor of Windows OS (cmd.exe) provides the user with the ability to compute hashes on files/Directories via an utility command named Certutil. In this article we would learn about computing hashes on command prompt (cmd).

Description of command:
The command Certutil is primarily used for working with digital certificates and not hashes. The ability to hash files is due to the presence of a -hashfile switch in it.

> Certutil -hashfile
-hashfile  -- Generate and display cryptographic hash over a file
[mai mult...]