<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Miraj Malam on Medium]]></title>
        <description><![CDATA[Stories by Miraj Malam on Medium]]></description>
        <link>https://medium.com/@mirajmalam?source=rss-7e22c94e17d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pHJ2-vjh4U1x_prZ</url>
            <title>Stories by Miraj Malam on Medium</title>
            <link>https://medium.com/@mirajmalam?source=rss-7e22c94e17d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:04:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mirajmalam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Basics of Docker for Python]]></title>
            <link>https://medium.com/@mirajmalam/basics-of-docker-for-python-b2fedc055de7?source=rss-7e22c94e17d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2fedc055de7</guid>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-python3]]></category>
            <dc:creator><![CDATA[Miraj Malam]]></dc:creator>
            <pubDate>Mon, 25 May 2026 09:22:10 GMT</pubDate>
            <atom:updated>2026-05-25T09:22:10.185Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="http://app.py/">app.py</a></h3><pre>import pandas as pd<br>import numpy as np<br><br>print(np.sqrt(20))</pre><h3>requirements.txt</h3><pre>numpy<br>pandas</pre><h3>Dockerfile</h3><pre># 1. Use an existing Python image<br>FROM python:3.11<br><br># 2. Set the working directory inside the container<br>WORKDIR /app<br><br># 3. Copy the requirements file first<br>COPY requirements.txt .<br><br># 4. Install the dependencies<br>RUN pip install --no-cache-dir -r requirements.txt<br><br># 5. Copy the rest of the app files<br>COPY . .<br><br># 6. Set environment variables<br># Prevent Python from creating unnecessary .pyc files<br>ENV PYTHONDONTWRITEBYTECODE=1 <br><br># Make Python print output immediately<br>ENV PYTHONUNBUFFERED=1<br><br># 7. Define the command to run the app<br>CMD [&quot;python&quot;, &quot;app.py&quot;]</pre><h3>run</h3><p>step 1 — Create image</p><pre>docker build -t my-app-name .<br># -t my-app-name human readable tag for image.<br># . tells docker to where look for the Dockerfile</pre><p>To list images</p><pre>sudo docker images</pre><p>step 2 — Create Container</p><pre>docker run -d my-app-name<br># -d: Runs the container in &quot;detached&quot; mode (background).<br># my-app-name - tag of image</pre><p>To list containers</p><pre>docker ps -a</pre><p>step 3 — Stop Container</p><pre>docker stop my-app-name</pre><p>step 4 — Remove Container</p><pre>docker rm my-app-name</pre><p>step 5 — remove image</p><pre>docker rmi my-app-name</pre><p>Cleanup commands</p><pre>docker image prune -a # to remove unused images<br>docker system prune # removes all stopped containers, unused networks, and dangling images</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2fedc055de7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Requirements of Public Key Cryptography]]></title>
            <link>https://medium.com/@mirajmalam/requirements-of-public-key-cryptography-bccd64404a2b?source=rss-7e22c94e17d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bccd64404a2b</guid>
            <category><![CDATA[public-key-cryptography]]></category>
            <category><![CDATA[crypto-analysis]]></category>
            <category><![CDATA[cyber-security-courses]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Miraj Malam]]></dc:creator>
            <pubDate>Sun, 18 May 2025 15:25:37 GMT</pubDate>
            <atom:updated>2025-05-18T15:25:37.112Z</atom:updated>
            <content:encoded><![CDATA[<h3>Requirement of Public Key Cryptography</h3><p>Public Key Cryptography(PKC) algorithms must fulfill the following conditions.</p><ol><li>Easy key generation (for Receiver)</li><li>Easy Encryption</li><li>Easy Decryption</li><li>Infeasible to Deduce Private key</li><li>Infeasible to Break</li></ol><h3>1. Easy key generation (for Receiver)</h3><ul><li>it must be computationally easy to generate private and public for the Receiver.</li></ul><h3>2. Easy Encryption</h3><ul><li>For the sender it must be computationally easy to generate an encrypt message based on Message and Public Key.</li></ul><h3>3. Easy Decryption</h3><ul><li>It must be easy to Decrypt cipher text for a receiver using a private key.</li></ul><h3>4. Infeasible to Deduce Private key</h3><ul><li>Even with the public key, No one should be able to Compute private keys easily.</li></ul><h3>5. Infeasible to Break</h3><ul><li>Without the private key, It should be computationally infeasible to decrypt the message.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bccd64404a2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>