Skip to content

Haris's personal blog

Noob dev talks

  • Sample Page

Category: security

Linux security

Public key encryption using gpg

April 12, 2020May 30, 2021haris1 Comment on Public key encryption using gpg

Public key, also known as asymmetric encryption involves two keys i.e. public key and private key. It helps two parties to communicate with each other in a much secure way. The whole process can be described as follows: Adam wants to send a secret message to his friend Eve. Both have generated keys in their […]

Linux security

Symmetric vs Asymmetric encryption

February 23, 2020February 29, 2020harisLeave a Comment on Symmetric vs Asymmetric encryption

The most common types of encryption are Symmetric encryption and Asymmetric encryption. Let’s see how they differ. Symmetric encryption This encryption uses only one key for both encryption and decryption. Let’s say you want to share a secret data with your friend. In symmetric encryption, both you and your friend will have a common key […]

Linux security

Using DU to check disk usage on Linux file systems

February 16, 2020February 29, 2020haris1 Comment on Using DU to check disk usage on Linux file systems

du stands for disk usage. It is a Linux command to check disk usage. Let’s quickly see how we can use du. du – outputs disk space used by all directories and sub-directories in the current directorydu -a – outputs disk space used by all files, directories and sub-directories in the current directory du * […]

Linux security

How to write an alias in C using typedef

November 11, 2019February 29, 2020harisLeave a Comment on How to write an alias in C using typedef

typedef keyword in C can be used to write an alias to a type(int, long, long long int, struct, etc.). Let’s see how we can do that We gave int an alias/ new name of myint, which allowed us to declare a variable n like so: myint n;The above line is the same as writingint […]

Linux security

Hello world!

November 3, 2019February 29, 2020haris36 Comments on Hello world!

Welcome to stackpointer!

All Rights Reserved.