Mohamed Reda Tech Logo
HomeArticlesApplicationsPhonesTutorialsTools
AR
Mohamed Reda Tech Logo
Mohamed Reda Tech

Tech articles, applications, and digital tools & services.

Follow Us
TelegramYouTube

Quick Links

ArticlesApplicationsTutorialsToolsPhones

Help

About UsAbout the authorEditorial policyContact Us

Stay Connected

Get notified when new articles, tools, and app updates are released.

© 2026 MR. All rights reserved.

Privacy Policy•Terms of Service•
Cybersecurity Fundamentals: Network Ports, Cryptography & HTTPS/TLS Handshake · Mohamed Reda Tech
  1. Home
  2. Tutorials
  3. Cybersecurity Fundamentals: Network Ports, Cryptography & HTTPS/TLS Handshake
Tutorials

Cybersecurity Fundamentals: Network Ports, Cryptography & HTTPS/TLS Handshake

Hands-on security engineering: How network ports operate, reconnaissance with Nmap, the mechanics of SSL/TLS 1.3 handshakes, and cryptographic hashing with Bcrypt.

By Mohamed RedaPublished: October 15, 2026Updated: November 15, 20263 min read
Encrypted Transport Tunnel Waveguide and TLS 1.3 Key Exchange

Practical Hardening of Distributed Systems

Cybersecurity is not an abstract theoretical ideal; it is a rigorous engineering discipline implemented across every packet traversing network interfaces and every daemon listening on a server. In this hands-on tutorial, we examine network port topologies, cryptographic fundamentals, and how HTTPS and TLS 1.3 safeguard modern internet communication.

1. Understanding Network Ports

If an IP address designates a physical building, Network Ports are the discrete apartment numbers identifying the specific listening daemon service. There are 65,535 available ports categorized into Well-Known (0-1023), Registered (1024-49151), and Dynamic/Private ranges:

  • Port 80: Unencrypted HTTP web traffic.
  • Port 443: Encrypted HTTPS / TLS secure web traffic.
  • Port 22: Secure Shell (SSH) remote administrative access.
  • Port 53: Domain Name System (DNS) query resolution.

2. Port Scanning & Reconnaissance via Nmap

# Fast scan of the most common 100 ports on authorized target
nmap -F scanme.nmap.org

# Detailed version detection and service interrogation
nmap -sV -p 80,443,22 scanme.nmap.org

# Rapid socket connectivity check for port 443
nc -zv yourdomain.com 443

3. How HTTPS & TLS 1.3 Safeguard Network Traffic

Standard HTTP transmits payloads—including session tokens, passwords, and banking data—in plaintext, vulnerable to Man-In-The-Middle (MITM) packet sniffing. HTTPS encapsulates HTTP within an encrypted Transport Layer Security (TLS 1.3) tunnel:

Stages of the TLS 1.3 Handshake:

  1. Client Hello: The browser transmits supported cipher suites and key share parameters.
  2. Server Hello & Certificate: The server responds with its chosen cipher suite and presents a digital certificate signed by a trusted Certificate Authority (e.g., Let's Encrypt).
  3. Key Exchange: Using Elliptic Curve Diffie-Hellman Ephemeral (ECDHE), both endpoints independently derive a shared symmetric session key without transmitting it over the wire.
  4. Encrypted Payload Channel: All subsequent HTTP requests and responses are encrypted using authenticated symmetric encryption (AES-256-GCM or ChaCha20-Poly1305).

4. Cryptographic Hashing for Credential Storage (Hashing vs Encryption)

User passwords must never be stored in plaintext or reversible encryption. Instead, hash passwords using adaptive, computationally intensive functions such as Argon2id or Bcrypt with unique cryptographic salts:

import bcrypt from "bcryptjs";

// Hash password with automatic cryptographic salt (12 rounds)
const userPassword = "SuperSecurePassword2026!";
const saltRounds = 12;
const hashedPassword = await bcrypt.hash(userPassword, saltRounds);

console.log("Database Stored Digest:");
console.log(hashedPassword); 
// $2a$12$... irreversible cryptographic digest

// Verify password match upon login authentication
const isMatch = await bcrypt.compare(userPassword, hashedPassword);
console.log("Credentials Valid?", isMatch); // true

Summary

Real-world cybersecurity begins with fundamental operational discipline: closing superfluous open ports, enforcing HTTPS-only HSTS headers, and employing robust one-way cryptographic hashing to defend data privacy at rest and in transit.

Related articles

Tutorials

Google Find My Device guide: locate, lock, or erase your lost Android phone remotely

Lost or stolen phone? A practical guide to Google's Find My Device: what to set up before you lose it, how to locate, ring, lock, or erase it remotely, and the real limits of each option.

November 28, 20263 min read
Tutorials

Comments(0)

Leave a comment

Share your thoughts or questions. Your email will not be published.

No comments yet. Be the first to share your thoughts!

Frequently asked questions

What is the critical distinction between Encryption and Hashing?+

Encryption is a reversible two-way mathematical operation where original plaintext can be restored using the corresponding private/secret key. Hashing is an irreversible one-way transformation designed for deterministic digest verification and secure credential storage.

Why do browsers warn that a connection is 'Not Secure'?+

A browser surfaces this warning when the TLS certificate is either expired, self-signed without a trusted Certificate Authority (CA) root, or does not match the requested domain name in its Subject Alternative Name (SAN) record.

Is performing a port scan via Nmap considered legal?+

Scanning networks without explicit, documented prior authorization from the system owner is considered unauthorized reconnaissance under cybercrime laws. Always conduct security assessments exclusively on authorized target systems or sandbox environments.

Translate Chrome Pages on Android: Choose a Language and Manage Automatic Translation

Request page translation, choose its destination language and manage automatic or excluded languages. Learn how these differ from Chrome’s interface language.

November 28, 20264 min read
Tutorials

Chrome Reading Mode on Android: Adjust Text, Fonts and Background Colors

Open Reading mode for supported pages, adjust font style and size, and choose light, sepia or dark backgrounds. Understand unavailable pages and the difference from audio playback.

November 24, 20264 min read
Tutorials

Android Privacy Dashboard: Review Camera and Microphone Use and Change Permissions

Find permission activity, identify the app and access time, then change one permission and test the feature. Understand Android 12 and 13 history windows and the limits of the log.

November 24, 20264 min read