<?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 iAmFearless on Medium]]></title>
        <description><![CDATA[Stories by iAmFearless on Medium]]></description>
        <link>https://medium.com/@richfield?source=rss-8aa877c83498------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G2kSmGQ5MxRGeP2UWY9iWg@2x.jpeg</url>
            <title>Stories by iAmFearless on Medium</title>
            <link>https://medium.com/@richfield?source=rss-8aa877c83498------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:02:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richfield/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[What I do on a Daily Basis as an SOC Infrastructure Engineer]]></title>
            <link>https://richfield.medium.com/what-i-do-on-a-daily-basis-as-an-soc-infrastructure-engineer-923f5dc100f?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/923f5dc100f</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[digital-life]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 17:40:05 GMT</pubDate>
            <atom:updated>2023-04-11T17:40:05.062Z</atom:updated>
            <content:encoded><![CDATA[<p>Incase you don’t know about me , well this is a short story about what I do on working days.</p><p>On a normal working day , there are solutions assigned to me that I check immediately I get to work to ensure that everything is working fine . At most times , my team and I find challenges on very bad days where some soulutions do not report or work according to how they are configured . Tailoring down these issues has helped me build a strong troubleshooting skill and also pushes me to learn more about these applications we implement.</p><p>Drilling down my morning routine , I tend to now check my content creation notes based on cybersecurity and the tech industry. There are certifications I really want to hit in the next few weeks so I’ve been working hard on those too.</p><p>Penetration Testing is broad and on a normal , I don’t do a lot of them so I tend to read people’s blogs on medium and Twitter to keep myself abreast.</p><p>Since I always want to be the best at what I do , I’m always on the verge of learning new network and web pentesting tricks every day .</p><p>Getting back home doesn’t mean I should just watch movies and sleep 😮‍💨🌚.</p><p>I tend to now look at requirements for pentesting remote jobs and what I need to know incase I want to hit my next role as a full Penetration tester or Red teamer . I tend to enrich my cv and my soft skills each night as I write a couple of cover letters and pentest proposals just to keep getting good at them . I sometimes play CTF’s with a couple of friends on Discord or just have Twitter spaces on cybersecurity updates.</p><p>I end up on social media on some days and then pray for God’s goodness for a good day and then repeat on a different day .</p><p>You can share yours as a comment too .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=923f5dc100f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Simplified]]></title>
            <link>https://richfield.medium.com/dns-simplified-d80775d421e7?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/d80775d421e7</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 23:15:18 GMT</pubDate>
            <atom:updated>2023-02-19T23:15:18.948Z</atom:updated>
            <content:encoded><![CDATA[<p>Domain Name System</p><p>Every computer device is mostly identified with a unique address on the internet which is the IP address represented as a 4 sets of digit (102.24.46.132). It’s not easy to remember this sophisticated collection of numbers when you want to access a website, and that’s where DNS is needed most. The length of a domain should be 253 characters or less.</p><h3>Domain Hierachy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*Z5BD0xXCY_7HGh15.jpg" /></figure><p><strong>Root Domain</strong></p><p>The root domain is the Internet’s top hierarchical level, technically speaking.</p><p><strong>Top Level Domain</strong></p><p>The Top Level Domain sits at the far right of a domain .For example(.edu, .com, .gov). We have two types of Top Level Domains which are Generic Top level Domain(gTLD) and Country Code Top Level Domain(ccTLD). A Generic Top Level Domain (gTLD) was originally intended to inform users about the purpose of a domain name in the sense that “.com” represents commercial, “.edu” for education and Country Code Top Level Domain(ccTLD) was meant for geographical purposes. for example .co.uk for sites in the United Kingdom.</p><p><strong>Second Level Domain</strong></p><p>Looking at medium.com, medium is the second level domain whereby the .com represents the Top Level Domain as discussed above. Second Level Domains have a limit to setting characters during registration which can be limited to only 63 characters + the TLD, and only the letters a-z, 0–9, and hyphens are permitted (Hyphens cannot be used to begin or finish a sentence, nor can they be used consecutively.)</p><p><strong>Subdomain</strong></p><p>A subdomain is a domain that is part of a bigger domain.This part of the domain is the added part which has the same restrictions specified on Second level domains. Subdomains can be split like this fearless-medium.medium.com or fearless.server.medium.com .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d80775d421e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Story: Starting out in cybersecurity]]></title>
            <link>https://richfield.medium.com/my-story-starting-out-in-cybersecurity-2a3ac3963a8f?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a3ac3963a8f</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 23:31:33 GMT</pubDate>
            <atom:updated>2023-01-23T23:31:33.440Z</atom:updated>
            <content:encoded><![CDATA[<h3>Starting out in cybersecurity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E4tf1_Mve7tHJ3AL.png" /></figure><p>Hey ! How is it going? I want to make this article a short one for every everyone to read. Let’s get started!</p><p>A lot of people want to start out with hacking right on the spot by hacking an iOS device or windows or get credit card credentials through hacking . Well I won’t say it will be difficult on your first try . It may be or not depending on your ability to grab knowledge real quick.</p><p>Growing up, I was really tied to technology and how things work. With the passion to learn coding at High-school, Started learning python as my first programming language. A lot of times I wished to solve the problems of my friends who got scammed by cyber criminals. Reasons associated with this, my passion got heightened for cyber security . Everyone has his or her own story of starting in this industry but I just told you how I started mine.</p><p><strong>Fields</strong></p><p>There are a lot of fields in the cybersecurity space which from been an Ethical hacking, Penetration testing, Computer forensics, Application Security, Endpoint security etc. These fields are standing out in the information technology sphere and over time you will definitely select your path as you play alongside with learning in cybersecurity.</p><p><strong>Pathway</strong></p><p>IT knowledge</p><p>Linux</p><p>Coding</p><p>Networking</p><p>Cybersecurity Conferences</p><p>Acquire certifications</p><p>Internship</p><p>Research skills</p><p>Cybersecurity Articles</p><p>Twitter</p><p>Mentorship</p><p><strong>Build</strong></p><p>Practice ctfs</p><p>github</p><p><strong>Advance stuffs you should look at</strong></p><p>Web Application hacking</p><p>Reverse Engineering</p><p>Privilege escalation</p><p>Active directory</p><p>Malware analysis</p><p>Exploit development</p><p>Conclusion</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a3ac3963a8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 4: Session Management]]></title>
            <link>https://richfield.medium.com/day-4-session-management-b3d9608b108d?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3d9608b108d</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 22:26:39 GMT</pubDate>
            <atom:updated>2023-01-23T23:41:31.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nkwHzek1CjII87L8.png" /></figure><p>Let’s get right into it guys .</p><p>Session management is an essential aspect of web application security. It involves managing the state of a user’s interactions with a web application, and it’s important to ensure that sessions are secure and cannot be hijacked by an attacker.</p><p>One of the most important best practices for session management is to use a secure method of storing session data. This can be achieved by implementing secure cookie, which is actually a small piece of data that is stored on a user’s device and contains information about a user’s session. A secure cookie should have a secure the security cookie headers set, this instructs the browser to transfer cookies only over secure connections, and an HTTP-only flag set, instructing the browser to hide cookies from client-side scripts.</p><p>Using a different session ID for each user is a crucial best practice. This aids in preventing session fixation attacks, in which a user’s session ID is set to a value that the attacker is aware of. It is significantly more difficult for an attacker to guess the session ID and take over the user’s session when each user has a unique session ID.</p><p>It’s also critical to employ a secure way of sending session data, such as the use of HTTPS. This aids in the prevention of session hijacking attacks, in which an attacker intercepts session data and exploits it to obtain access to the user’s account.</p><p>Last but not the least, it is also important to provide the session’s expiration time.This is accomplished by setting the session cookie’s expiration time.<br>A session should only be kept alive for as long as necessary before prompting the user to re-authenticate.This is a base for the management of sessions with regards to web application security This can help avoid session hijacking attacks and assaults in which an a threat actor leverages an old session to obtain access to a user’s account.</p><p>Finally, it is feasible to prevent typical session hijacking threats by adopting a secure means of storing and transferring session data, employing unique session IDs, and establishing the right expiration period for the session. Furthermore, it is critical to examine and update session management methods on a regular basis to ensure that they are in accordance with current security best practices and also web application development standards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3d9608b108d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 3: Authentication and Authorization]]></title>
            <link>https://richfield.medium.com/day-3-authentication-and-authorization-d20df0fafa32?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/d20df0fafa32</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Sun, 22 Jan 2023 17:20:38 GMT</pubDate>
            <atom:updated>2023-01-24T00:16:49.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*SVJyyJW0uJGdH5jk.png" /></figure><p>Authentication and authorization are two critical aspects of web application security. Authentication is the process of confirming a user’s identity, whereas authorization is the process of determining what a user is permitted to access. These two ideas work together to guarantee that only authorized users have access to sensitive information and are able to conduct certain activities. Using strong passwords is one of the most significant best practices for enabling safe authentication. Passwords should be at least eight characters long and contain a combination of letters, numbers, and special characters. Passwords should also be hashed, which is a procedure that converts a password into a string of characters that people cannot read. This protects against brute force assaults, in which a threat actor tries several password combinations to guess the password.</p><p>Another important best practice is to use multi-factor authentication (MFA). MFA requires users to provide two or more forms of identification, such as a password and a fingerprint or a password and a one-time code sent to a user’s phone. This helps to ensure that even if a threat actor is able to guess a user’s password, they will still not be able to gain access to the account. Authorization, on the other hand, refers to the process of deciding what a user is permitted to access. This may be accomplished by granting users roles and permissions. An administrator, for example, may have access to sensitive data that an ordinary user does not. Access control lists (ACLs) and role-based access control can also be used to provide access control (RBAC).</p><p>Finally , Web application security relies heavily on authentication and permission. It is feasible to prevent typical authentication and authorization threats by using strong passwords, using MFA, and employing a secure means of storing and transferring session data. Furthermore, it is possible to guarantee that only authorized users have access to critical information and may execute certain tasks by establishing access control and assigning roles and permissions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d20df0fafa32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2: Input Validation and Sanitization]]></title>
            <link>https://richfield.medium.com/day-2-input-validation-and-sanitization-378a0fd8af8c?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/378a0fd8af8c</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Sun, 22 Jan 2023 00:17:05 GMT</pubDate>
            <atom:updated>2023-01-22T00:17:05.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*lZdx0Nm83EMuVQrc.jpg" /></figure><p>Understanding the importance of input validation and sanitization</p><p>Common techniques for validating and sanitizing input.</p><p>How to prevent common injection attacks</p><p>Input validation and sanitization are crucial steps in securing a web application. They involve checking and cleaning user input to ensure that it meets certain criteria and does not contain any malicious code. By properly validating and sanitizing input, it is possible to prevent a wide range of attacks, including SQL injection and cross-site scripting (XSS).</p><p>Input validation is the process of ensuring that user input meets certain criteria. This can include checking that input is in the correct format, such as a valid email address or a number within a certain range. It can also include checking that input is within a certain length, or that it matches a specific pattern. Regular expressions are a powerful tool that can be used to validate input and ensure it meets certain conditions.</p><p>Sanitization is the process of removing any malicious code from user input. This can include removing any special characters, such as &lt; and &gt;, which could be used in an XSS attack. It can also include encoding special characters, such as converting &lt; to &lt;, so that they are not interpreted as HTML or JavaScript.</p><p>A common technique for preventing SQL injection attacks is to use prepared statements or parameterized queries. These techniques separate the data from the SQL statement, making it much harder for an attacker to inject malicious code into the query. Additionally, using parameterized queries can also make your code more readable and maintainable.</p><p>It is also important to validate and sanitize data on the server-side, as well as on the client-side. Client-side validation can improve the user experience by providing instant feedback, but it should not be relied on as the sole means of validation. An attacker can easily bypass client-side validation by manipulating the request made to the server.</p><p>In conclusion, input validation and sanitization are essential steps in securing a web application. By properly validating and sanitizing input, it is possible to prevent a wide range of attacks, including SQL injection and XSS. To validate and sanitize input effectively, it’s important to use regular expressions and prepared statements, and to validate and sanitize data on both the client-side and server-side.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=378a0fd8af8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7-Day Web Application Security Post :Introduction to Web Application Security.]]></title>
            <link>https://richfield.medium.com/7-day-web-application-security-post-introduction-to-web-application-security-52b3346be8b5?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b3346be8b5</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Fri, 20 Jan 2023 16:29:50 GMT</pubDate>
            <atom:updated>2023-01-20T16:29:50.054Z</atom:updated>
            <content:encoded><![CDATA[<h3>7-Day Web Application Security Post</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fvqh0ZsMHqpj3beT.jpg" /></figure><p>Web application security is a crucial aspect of protecting sensitive information and maintaining the integrity of your website or application. With the increasing number of cyber-attacks, it’s important to understand the common types of vulnerabilities and attacks, as well as the best practices for secure web development. This is a seven-day web application series you can follow.</p><p>One of the most common types of attacks is known as SQL injection, where an attacker injects malicious code into a SQL statement through user input. This can result in the attacker gaining access to sensitive information such as login credentials or personal data. Another common vulnerability is cross-site scripting (XSS), where an attacker injects malicious code into a web page viewed by other users. This can result in the attacker stealing information such as cookies or login credentials.</p><p>To prevent these types of attacks, it’s important to implement input validation and sanitization, which involve checking user input to ensure it meets certain criteria and removing any malicious code. This can be done through the use of regular expressions or a whitelist of acceptable characters. Additionally, it’s important to use prepared statements or parameterized queries when working with databases to prevent SQL injection.</p><p>Another key aspect of web application security is authentication and authorization. Authentication is the process of verifying a user’s identity, while authorization is the process of determining what the user is allowed to access. To implement secure authentication and authorization, it’s important to use strong passwords and implement a password hashing function to protect against brute force attacks. Additionally, it’s important to use a secure method of storing session data, such as using a secure cookie or storing the data in a database.</p><p>Cryptography is another important aspect of web application security. It involves the use of mathematical algorithms to encrypt and decrypt sensitive information. To implement secure cryptography, it’s important to use a strong encryption algorithm and to use a different key for each piece of information. Additionally, it’s important to use a secure method of storing and transmitting the encryption keys.</p><p>Finally, when working with web services and APIs, it’s important to use secure protocols such as HTTPS and to use a secure method of authenticating the API.</p><p>Thanks for reading up to this point. Do well to follow this page as well.</p><p>In conclusion, web application security is an ongoing process that requires regular updates and maintenance. By understanding the common types of vulnerabilities and attacks, implementing best practices for secure web development, and staying up to date on the latest security trends, you can help protect your website or application from cyber-attacks.</p><p>Share your comments.</p><p>Twitter: <a href="https://twitter.com/_fearless_h">iAmFearless🦅🚀🥷👨🏿‍💻 (@_fearless_h) / Twitter</a></p><p>Youtube :https://www.youtube.com/@RichfieldFearless</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52b3346be8b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Early Stages of me being a Security Analyst | Thoughts of Switching back to Coding.]]></title>
            <link>https://richfield.medium.com/early-stages-of-me-being-a-security-analyst-thoughts-of-switching-back-to-coding-35e4de7f76b0?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/35e4de7f76b0</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Sun, 14 Aug 2022 16:39:23 GMT</pubDate>
            <atom:updated>2022-08-14T16:39:23.530Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Early Stages of me being a Security Analyst | Thoughts of Switching back to Coding</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*ttVIwAOkHN9IEEHj.jpg" /></figure><p>This is just me here on medium typing out how i feel about the Infosec community. As a junior SOC analyst , its starting to feel the same as always. I feel coding has a more dedicated and motivated path since you need to practice on the go, learn as much as you can , find more tricks and newTech to accomplish a specified goal.</p><p>The Cybersecurity field is quite challenging as compared to working as a machine learning person or a programmer. Please not a UI or UX designer. Coding with the right mindset and goal will enable you know what language you will be using often since there is an outright path. Well, maybe I’m wrong on this one but here is the thing, maybe the African cyber sec community provides a whole lot of information on stuffs that are never implemented by individuals. If you love challenges, you are always on the go to accomplish goals.</p><p>Okay, enough of all the ranting about the path of Coding and Cybersec. If you are not motivated enough or work with less motivated people in infosec, you will always feel there is no work at hand but trust me there is a lot of work at hand in the hacking field. Its a very broad field ranging from , vulnerability assessment, penetration testing, malware analysis, threat hunting, incident response, forensics and so on.</p><p>People with Coding backgrounds tend to sometimes not have a challenge in the Security operation game. Mind you, hacking is broad. I know people have great opinions about using their web-dev skills to find security bugs. If your coding background deals with web and mobile development, that’s a huge plus for you man . Do not compare it with Cybersecurity engineering.</p><p>Well guys, this post is just a rant. If you find yourself in the same condition, you will understand more. Big ups to the love shown out here on medium. Stay motivated, accomplish the goals you’ve set and never be complacent.</p><p><a href="https://www.youtube.com/c/RichfieldFearless/videos">Fearless Cyberengine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35e4de7f76b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Points to keep up in your cybersecurity Journey]]></title>
            <link>https://richfield.medium.com/10-points-to-keep-up-in-your-cybersecurity-journey-8a20ff30ccdb?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a20ff30ccdb</guid>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Fri, 27 May 2022 10:32:58 GMT</pubDate>
            <atom:updated>2022-05-27T10:36:44.237Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone wants to be better at what they do right? Always yes for everyone but do you put in the work? Not always. Well Welcome back to another post with Fearless and to become better at ethical hacking, do these 10 points to be discussed right now. Alright. First and foremost,</p><ol><li>Keep Up with latest cybersecurity Articles and trends. The best platform to keep up with tech people is twitter and medium. You missing a lot if you do not have an account on these platforms . You can also get more on medium. If you are into bug bounties.</li></ol><p>[With twitter you can follow real geeks that have been hacking for years and have substantial proof. We have people that do not possess any skill but make a lot of noise on social media.]</p><p>2. Practice everyday (Hackthebox, Tryhackme, Metasploitable, pentester lab, portswigger, letsdefend.io etc)You need to be consistent with the stuffs you play with.</p><p>3. Master your fundamentals</p><p>Now on this point,</p><p>4. Study always(There is always an update this field)</p><p>5. Know what works for you(books, projects, videos)</p><p>6. Keep a challenge on, in the sense that not everyone is okay with challenges, but you should always know the threat actors find joy in doing that . They love challenges in other to keep up with the latest trends in attacks. Challenge yourself always .</p><p>7. Network with other hackers</p><p>8. Get a mentor if you are new in this field</p><p>9. Check out tools and get updated always .</p><p>10. Choose a career path and stick to it .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a20ff30ccdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Virtual Environment]]></title>
            <link>https://infosecwriteups.com/python-virtual-environment-1b5db9844236?source=rss-8aa877c83498------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5db9844236</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[virtual-environment]]></category>
            <dc:creator><![CDATA[iAmFearless]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 01:17:36 GMT</pubDate>
            <atom:updated>2021-09-21T04:46:35.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hicFMnjJf8GyP0sleHrTbA.png" /><figcaption>python logo enhanced by behance</figcaption></figure><p>A virtual environment as the name goes works as a virtual machine as well whereby the installed operating system is separate from the actual operating system. During updates and upgrades, it affects just the virtual machine and not the actual system. This concept works the same with a virtual environment whereby an isolated runtime environment helps a user or an application to install and upgrade python packages without messing with other application built with python on the system. Due to how python packages are stored on systems in different location for instance, most system packages are stored in a child directory of the path stored in sys.prefix.</p><p>For instance; In the creation of an application, app A may have a particular library with a different version whilst app B also has a different version lets say 2.0. In the cases of using these two applications, one might meet the requirement of a particular module and the other might not which tends to introduce the need for python virtual environment.</p><h3>CREATING A VIRTUAL ENVIRONMENT</h3><p>Install the venv tool when using python2 .</p><pre>pip install virtualenv</pre><p>With python3, the venv module comes along with the standard library.</p><p>Start by creating a directory/folder</p><pre>mkdir fearless-env</pre><p>Run the venv module as a script with the directory path:</p><p>This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, the standard library, and various supporting files.</p><p>A common directory for a virtual environment is .venv. This name keeps the directory hidden in your shell and thus out of the way while giving it a name that explains why the directory exists. It also prevents clashing with .env environment variable definition files that some tooling supports.</p><p>Now activate your virtual environment</p><p>on Windows:</p><pre>pytutorial-env\\Scripts\\activate.bat</pre><p>On Unix or Mac:</p><p>source tutorial-env/bin/activate</p><pre>source tutorial-env/bin/activate</pre><p>You should see the activated environment indicated on the terminal</p><p><strong>References</strong></p><ul><li><a href="https://docs.python.org/3/tutorial/venv.html">12. Virtual Environments and Packages</a></li><li><a href="https://realpython.com/python-virtual-environments-a-primer/">Python Virtual Environments: A Primer - Real Python</a></li></ul><p><strong><em>Check out my Youtube channel for more contents</em></strong></p><p><a href="https://www.youtube.com/channel/UCbcfcMixWSNF7BoArenrlig?sub_confirmation=1">Fearless CyberEngine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5db9844236" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/python-virtual-environment-1b5db9844236">Python Virtual Environment</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>