<?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 Isuru Shehara on Medium]]></title>
        <description><![CDATA[Stories by Isuru Shehara on Medium]]></description>
        <link>https://medium.com/@isurushehara?source=rss-4e8ef61b71b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7h4Eq3QaMlEyxfb5</url>
            <title>Stories by Isuru Shehara on Medium</title>
            <link>https://medium.com/@isurushehara?source=rss-4e8ef61b71b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:32:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@isurushehara/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[Understanding Different API Styles]]></title>
            <link>https://medium.com/@isurushehara/understanding-different-api-styles-be254395e4e9?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/be254395e4e9</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[soap]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Sun, 10 May 2026 14:44:44 GMT</pubDate>
            <atom:updated>2026-05-10T16:39:41.319Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qderuh6-5OoCK18g" /></figure><p>Why Modern Applications Communicate So Differently</p><p>Every developer eventually reaches a moment where building a single application is no longer enough. At the beginning, software development feels simple.</p><p>But then applications start growing. Suddenly, different systems need a way to talk to each other. That is the moment developers begin encountering APIs.</p><p>And once you start exploring APIs, another question appears very quickly:</p><p>“Why are there so many different API styles?”</p><p>At first, they all seem like different ways to send data between applications. But as systems become larger and more complex, developers realize each API style solves a different kind of problem.</p><p>Understanding these API styles is one of the most important skills in modern software engineering because APIs are no longer optional. They are the communication layer behind almost every modern application we use today.</p><h3>Understanding What an API Really Is</h3><p>Most beginners hear the term API and immediately think it sounds complicated. But the idea itself is actually simple. An API is just a communication bridge between two systems.</p><p>Imagine ordering food in a restaurant. You do not walk into the kitchen and cook the meal yourself. Instead, you speak to the waiter.</p><p>The waiter:</p><ul><li>Takes your request</li><li>Delivers it to the kitchen</li><li>Brings the response back</li></ul><p>In software:</p><ul><li><strong>The client</strong> is the customer</li><li><strong>The server</strong> is the kitchen</li><li><strong>The API</strong> is the waiter</li></ul><p>The client never needs to know how the server internally works. It only needs to know how to send requests and receive responses. That separation is what makes modern software scalable.</p><h3>Why APIs Became So Important</h3><p>Years ago, many applications were monolithic. Everything existed inside one large system. But modern applications are completely different.</p><p>Today:</p><ul><li>Mobile apps communicate with cloud servers</li><li>Payment gateways connect to e-commerce platforms</li><li>Microservices exchange data continuously</li><li>Real-time applications synchronize users instantly</li></ul><p>Without APIs, none of these systems could communicate efficiently.</p><p>Think about applications you use every day:</p><ul><li>When you log in using Google</li><li>When you check live weather updates</li><li>When you send a WhatsApp message</li><li>When Netflix recommends a movie</li></ul><p>APIs are silently working in the background.</p><p>Modern software engineering depends heavily on APIs because they allow systems to become modular rather than tightly coupled. As developers began building more complex systems, different API architectures started to emerge.</p><h3>The Evolution of API Styles</h3><p>Not all applications have the same requirements.</p><p>Some systems prioritize:</p><ul><li>Simplicity</li><li>Flexibility</li><li>Real-time communication</li><li>Enterprise-level security</li><li>High performance</li><li>Low bandwidth usage</li></ul><p>Because of this, developers created different API styles optimized for different situations. Modern software engineering includes multiple API architectures because no single solution can efficiently solve every communication problem.</p><p>Each API style was designed to handle specific challenges in system communication, scalability, reliability, and performance.</p><h3>REST APIs - The Most Common API Style</h3><p>When most developers first learn APIs, they usually start with REST. REST became popular because it feels natural and simple.</p><ul><li>A client sends an HTTP request</li><li>The server processes it</li><li>The server returns data</li></ul><p>That communication flow matches how the web already works.</p><p>REST APIs typically use standard HTTP methods:</p><pre>GET /users POST /users PUT /users/1 DELETE /users/1</pre><p>This structure makes REST APIs easy to understand, even for beginners. REST became the foundation of modern web communication because it uses simple and standardized HTTP-based architecture.</p><h3>Why REST Became So Popular</h3><p>REST solved many problems at the right time. As web applications started growing rapidly, developers needed,</p><ul><li>Simple communication</li><li>Scalable architectures</li><li>Standardized web communication</li></ul><p>REST fit perfectly because it used technologies developers already understood.</p><p>Most REST APIs return JSON,</p><pre>{ &quot;id&quot;: 1, &quot;name&quot;: &quot;John&quot; }</pre><p>JSON is lightweight, readable, and easy for frontend applications to process. The simplicity of REST and JSON is one of the main reasons REST still dominates modern web development today.</p><h3>The Problem REST Eventually Faced</h3><p>REST works extremely well for many applications. But as frontend applications became more advanced, developers started noticing inefficiencies. Imagine a mobile application requesting user information.</p><p>Maybe the frontend only needs:</p><ul><li>Name</li><li>Profile picture</li></ul><p>But the REST API returns:</p><ul><li>Email</li><li>Address</li><li>Phone number</li><li>Settings</li><li>Permissions</li><li>Activity history</li></ul><p>The client receives much more data than it actually needs. This problem is called <strong>over-fetching</strong>. Sometimes the opposite happens too.</p><p>The frontend may need data from multiple endpoints:</p><pre>/users/1 /users/1/posts /users/1/friends</pre><p>Now multiple requests are required just to build a single screen.As frontend complexity increased, developers started searching for something more flexible.</p><p>That is where <strong>GraphQL</strong> entered the picture.</p><h3>GraphQL - Letting Clients Control the Data</h3><p>GraphQL changed the relationship between the client and the server. Instead of the server deciding the response structure, the client chooses exactly what data it wants.</p><p>A GraphQL query might look like this,</p><pre>query { user(id: 1) { name profilePicture } }</pre><p>The server returns only those fields. Nothing extra. This makes frontend applications much more efficient.</p><h4>Why Developers Love GraphQL</h4><p>GraphQL feels powerful because frontend developers gain more control. Instead of asking the backend team for new endpoints repeatedly, clients can shape their own responses.</p><p>This becomes extremely useful for,</p><ul><li>Mobile applications</li><li>Complex dashboards</li><li>Social media platforms</li><li>Applications with deeply connected data</li></ul><p>For example, platforms like GitHub and Shopify use GraphQL because their frontend systems require flexible data structures.</p><p>But GraphQL also introduces new complexity.</p><ul><li>Backend logic becomes harder to manage</li><li>Caching becomes more complicated</li><li>Resolvers can become difficult to optimize</li></ul><p>So, while GraphQL solves flexibility problems, it also creates architectural challenges developers must understand.</p><h3>SOAP APIs - The Enterprise Approach</h3><p>Before REST became dominant, many enterprise systems relied heavily on SOAP. SOAP stands for Simple Object Access Protocol. Compared to REST, it feels much stricter and more formal.</p><p>SOAP messages are written in XML:</p><pre>&lt;soap:Envelope&gt; &lt;soap:Body&gt; &lt;GetUser&gt; &lt;UserId&gt;1&lt;/UserId&gt; &lt;/GetUser&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt;</pre><p>At first glance, SOAP can feel overly complex. But that complexity exists for a reason.</p><p>Large enterprise systems often require,</p><ul><li>Strict security rules</li><li>Reliable transactions</li><li>Standardized contracts</li><li>Formal communication structures</li></ul><p>SOAP was designed for those environments.</p><h4>Where SOAP Still Matters</h4><p>Even though REST dominates modern startups and web platforms, SOAP still exists heavily inside,</p><ul><li>Banking systems</li><li>Government platforms</li><li>Enterprise ERP systems</li><li>Insurance systems</li></ul><p>These industries prioritize reliability over simplicity.</p><p>For example, a banking transaction cannot afford inconsistent communication. SOAP provides strict standards that help enterprise systems maintain stability.</p><p>So, while SOAP feels older, it still plays an important role in enterprise software engineering.</p><h3>gRPC - Built for High Performance Systems</h3><p>As microservices became popular, developers encountered another challenge. Large distributed systems require services to communicate constantly. REST worked, but JSON communication introduced overhead.</p><p>When thousands of services communicate continuously, performance starts mattering heavily.That is where gRPC became important. It was developed by Google LLC and focuses heavily on performance.</p><p>Instead of JSON, it uses Protocol Buffers, a compact binary format.</p><p>A simple gRPC service definition looks like this,</p><pre>service UserService { rpc GetUser(UserRequest) returns (UserResponse); }</pre><p>Unlike REST APIs designed mainly for public communication, gRPC is commonly used internally between backend services.</p><h4>Why Modern Cloud Systems Use gRPC</h4><p>Modern distributed systems prioritize speed, efficiency, and scalability.</p><p>gRPC performs extremely well because,</p><ul><li>Binary data is smaller</li><li>Communication is faster</li><li>HTTP/2 improves connection efficiency</li></ul><p>This makes gRPC highly valuable in microservice architectures, cloud-native systems and real-time backend infrastructure.</p><p>But it is harder for beginners because debugging binary protocols is not as simple as reading JSON responses.</p><p>So again, developers trade simplicity for performance.</p><h3>WebSockets - Powering Real-Time Communication</h3><p>Traditional APIs work well for request-response communication. But what happens when applications need live updates instantly?</p><p>Chat applications.<br>Online games.<br>Live stock dashboards.<br>Collaborative editing systems.</p><p>These systems require continuous communication.</p><p>This is where WebSockets become essential. Instead of repeatedly opening and closing HTTP requests, WebSockets create a persistent connection between the client and server.</p><p>Once connected,</p><ul><li>The client can send data anytime</li><li>The server can send data anytime</li><li>The connection remains active</li></ul><p>This is the foundation of real-time systems.</p><h4>Why Real-Time Systems Feel Different</h4><p>Real-time applications feel smooth because updates happen instantly.</p><p>For example,</p><ul><li>Typing indicators</li><li>Live notifications</li><li>Real-time chats</li><li>Multiplayer synchronization</li></ul><p>All depend on persistent communication. A simple WebSocket example in JavaScript looks like this,</p><pre>const socket = new WebSocket(&quot;ws://localhost:8080&quot;); <br>socket.onmessage = (event) =&gt; { console.log(event.data); }; <br>socket.send(&quot;Hello Server&quot;);</pre><p>Unlike REST APIs, the server does not wait for the client to ask repeatedly for updates. Communication becomes continuous.</p><h3>Comparing Modern API Styles</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*fXyWP5I_bDMlhkNg9HYX6w.png" /></figure><p>As developers grow, they eventually realize something important. There is no universally “best” API style. Each architecture solves a different problem. Choosing the right API style depends entirely on system requirements.</p><h3>How Developers Usually Choose an API Style</h3><p>In real projects, architecture decisions are rarely random.</p><p>For example,</p><ul><li>A startup building a simple SaaS platform may choose REST because development speed matters most.</li><li>A social media platform may choose GraphQL because frontend flexibility is critical.</li><li>A banking system may choose SOAP because transaction reliability matters more than simplicity.</li><li>A distributed cloud platform may use gRPC because internal service communication must remain extremely fast.</li><li>A chat platform may rely on WebSockets because users expect instant updates.</li></ul><p>Every API style represents a tradeoff between simplicity, performance, flexibility, reliability, and scalability. Understanding those tradeoffs is what separates beginner developers from experienced software engineers.</p><h3>Best Practices for Modern API Design</h3><p>Regardless of architectural style, good APIs share common principles. Developers should focus on,</p><ul><li>Clear endpoint naming</li><li>Proper versioning</li><li>Strong authentication</li><li>Good documentation</li><li>Consistent error handling</li><li>Performance optimization</li></ul><p>A well-designed API should feel predictable and easy to use. Because in modern software engineering, APIs are not just technical tools anymore. They are products developers interact with daily.</p><h3>Final Thoughts</h3><p>Modern applications are no longer isolated systems. Everything communicates. APIs make all of this possible.</p><p>Understanding REST, GraphQL, SOAP, gRPC, and WebSockets gives developers a much deeper understanding of how modern systems actually work behind the scenes.</p><p>And as software continues evolving toward distributed architectures, cloud-native systems, and real-time applications, API knowledge becomes even more valuable.</p><p>Learn how systems communicate. Understand why different architectures exist. And most importantly, learn how to choose the right tool for the right problem. Because great software engineering is not only about writing code. It is about designing systems that communicate efficiently.</p><h3>References &amp; Resources</h3><p>The following resources were used for understanding modern API architectures, communication models, and best practices in software engineering.</p><ul><li><a href="https://restfulapi.net/">REST API Tutorial</a></li><li><a href="https://graphql.org/learn/">GraphQL Official Documentation</a></li><li><a href="https://grpc.io/docs/">gRPC Official Documentation</a></li><li><a href="https://www.w3.org/TR/soap/">SOAP Specification (W3C)</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API">MDN WebSocket API Documentation</a></li><li><a href="https://socket.io/docs/v4/">Socket.io Official Documentation</a></li></ul><p><em>Originally published at </em><a href="https://isfewinfo.blogspot.com/2026/05/understanding-different-api-styles.html"><em>https://isfewinfo.blogspot.com</em></a><em> on May 10, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be254395e4e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge Representation in Artificial Intelligence]]></title>
            <link>https://medium.com/@isurushehara/knowledge-representation-in-artificial-intelligence-2aadad9959a7?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aadad9959a7</guid>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[semanticweb]]></category>
            <category><![CDATA[knowledge-representation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Mon, 04 May 2026 12:33:01 GMT</pubDate>
            <atom:updated>2026-05-04T14:44:22.963Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of Artificial Intelligence (AI), one of the most important questions is not just how to process data, but how to represent knowledge in a way that machines can understand and use effectively. This is where Knowledge Representation (KR) plays a critical role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*tjRsjZg5w3Kr-BIB" /></figure><h3>What is Knowledge Representation?</h3><p>Knowledge Representation is defined as a method of encoding information about the real world so that a computer system can use it to solve complex problems such as reasoning, decision-making, and natural language understanding .</p><p>Simply put, if data is the raw material, knowledge representation is how we organize and structure it to make it meaningful for machines.</p><h3>Why It Matters</h3><p>Modern systems like search engines, chatbots, recommendation systems, and even medical diagnosis tools rely heavily on structured knowledge.</p><ul><li>It enables machine reasoning (systems can infer new knowledge).</li><li>It supports decision-making (e.g., recommending products or diagnosing diseases).</li><li>It allows interoperability between systems.</li><li>It forms the foundation of the Semantic Web, where data is not only displayed but also understood by machines.</li></ul><p>Major limitation of the current web is most web documents are designed for human reading, not for machine understanding. This gap is exactly what knowledge representation tries to solve.</p><h3>Core Components</h3><ul><li><strong>Entities</strong> - Objects like people, places, concepts</li><li><strong>Relationships</strong> - Connections between entities</li><li><strong>Constraints</strong> - Rules that must be followed</li><li><strong>Reasoning</strong> - Ability to infer new knowledge</li></ul><p>These components help transform raw data into structured, meaningful information.</p><h3>Forms of Knowledge Representation</h3><p>The main types are,</p><ul><li>Semantic Networks</li><li>Frames</li><li>Logic-Based Representation</li><li>Rule-Based Systems</li><li>Ontologies</li><li>Knowledge Graphs</li></ul><h3>Semantic Networks</h3><p>A Semantic Network is a graphical way of representing knowledge using nodes and relationships. In this structure, each node represents a concept or entity, while the connections (edges) show how those concepts are related. It is one of the earliest knowledge representation techniques and is inspired by how humans associate ideas in memory. This approach allows systems to understand relationships and even infer new knowledge through connections.</p><p><strong>Example:</strong><br> Dog → is-a → Animal<br> Dog → has-property → Fur<br> Animal → needs → Food</p><p>From this, the system can infer: Dog needs food</p><p><strong>Advantages:</strong></p><ul><li>Easy to understand</li><li>Flexible</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Hard to scale</li><li>Lack of formal logic</li></ul><h3>Frame-Based Representation</h3><p>Frame-Based Representation organizes knowledge into structured units called frames, similar to objects in programming. Each frame represents a concept and contains attributes (slots) and their values (fillers). Frames can inherit properties from other frames, making them efficient for representing hierarchical knowledge. This method closely resembles how humans organize information in categories.</p><p><strong>Example:</strong><br> Frame: Car<br>- Brand: Toyota<br>- Model: Corolla<br>- Year: 2022<br>- Color: White</p><p>Frame: ElectricCar (inherits Car)<br> - BatteryCapacity: 75kWh<br> - ChargingTime: 2 hours</p><p><strong>Advantages:</strong></p><ul><li>Organized and intuitive</li><li>Supports inheritance</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Hard to maintain large systems</li></ul><h3>Logic-Based Representation</h3><p>Logic-Based Representation uses formal mathematical logic to describe knowledge in a precise and unambiguous way. It represents facts and relationships using logical statements, allowing machines to perform reasoning and derive new conclusions automatically. This approach is widely used in expert systems and forms the foundation of many Semantic Web technologies.</p><p><strong>Example:</strong><br> All students must register<br> John is a student</p><p>Therefore, John must register</p><p><strong>Advantages:</strong></p><ul><li>Precise and unambiguous</li><li>Supports automated reasoning</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Complex to design</li></ul><h3>Rule-Based Systems</h3><p>Rule-Based Representation expresses knowledge in the form of IF-THEN rules. These rules define actions or conclusions based on specific conditions, similar to human decision-making processes. When a condition is satisfied, the system applies the corresponding rule to produce a result. This method is commonly used in expert systems such as medical diagnosis and troubleshooting systems.</p><p><strong>Example:</strong><br> IF Temperature &gt; 38°C AND Headache → Fever<br> IF Fever AND Cough → Flu</p><p>Input: Temperature = 39°C, Headache = Yes<br> Output: Fever → Possible Flu</p><p><strong>Advantages:</strong></p><ul><li>Easy to understand</li><li>Transparent decisions</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Rule explosion problem</li></ul><h3>Ontologies</h3><p>An ontology is a formal and structured representation of knowledge within a specific domain. It defines concepts, relationships, and constraints in a way that both humans and machines can understand. Ontologies enable data sharing, reuse, and interoperability across different systems, making them a key component of the Semantic Web.</p><p>The system understands John is a Person with defined attributes</p><p><strong>Advantages:</strong></p><ul><li>Supports data sharing</li><li>Enables reasoning</li></ul><h3>Knowledge Graphs</h3><p>A Knowledge Graph is an advanced form of knowledge representation that connects real-world entities and their relationships in a graph structure. It combines data from multiple sources to provide rich, contextual understanding. Knowledge graphs are widely used in modern applications such as search engines, recommendation systems, and AI assistants.</p><p><strong>Example:</strong><br> “Elon Musk” → CEO of → “Tesla”<br> “Tesla” → produces → “Electric Cars”<br> “Elon Musk” → founded → “SpaceX”</p><p>The system connects related information across multiple domains</p><h3>Knowledge Representation &amp; Semantic Web</h3><p>The Semantic Web extends the traditional web by enabling machines to understand and interpret data rather than simply displaying it. It achieves this by using structured metadata and standardized formats that give clear meaning to information. Through technologies like RDF and OWL, data becomes machine-readable, allowing systems to integrate, share, and process knowledge more intelligently across different applications.</p><h3>Conclusion</h3><p>Knowledge Representation serves as the foundation of intelligent systems, enabling machines to move beyond raw data processing toward meaningful understanding and reasoning. From semantic networks to ontologies and knowledge graphs, each representation technique contributes to building smarter and more capable AI solutions. As technology continues to evolve, systems that can understand and utilize knowledge - not just data - will play a key role in shaping the future of digital innovation.</p><p><em>Originally published at </em><a href="https://isfewinfo.blogspot.com/2026/05/knowledge-representation-in-artificial.html"><em>https://isfewinfo.blogspot.com</em></a><em> on May 4, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aadad9959a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Better Code History: The Complete Guide to Git Commit Messages]]></title>
            <link>https://medium.com/@isurushehara/write-better-code-history-the-complete-guide-to-git-commit-messages-45ea81edb376?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/45ea81edb376</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git-commit-messages]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[standards]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 04:47:11 GMT</pubDate>
            <atom:updated>2026-01-14T11:33:00.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*MdhY-WLMkldjKyky.jpeg" /></figure><p>Most of our day-to-day work in studies and software careers happens with code. When you work alone or with a team, Git becomes your memory. Every commit message is a small note to your future self and to other developers.</p><h3>Why Git Commit Messages Matter</h3><p>Many beginners think commit messages are not important and write messages like:</p><ul><li>update</li><li>fix bug</li><li>final version</li><li>test</li></ul><p>But after a few weeks or months, when you look back at your project, you will not understand what was changed, why it was changed, or where a bug was introduced.</p><p>Imagine you are working in a team, and your manager asks:</p><p>“Why did the login stop working last Friday?”</p><p>If your commit messages are clear, you can easily find:</p><ul><li>Which commit caused the issue</li><li>What exactly was changed</li><li>Who worked on it</li></ul><p>If your messages are unclear, you will waste time checking code line by line. That is why good git commit messages are very important.</p><h3>What Is a Git Commit Message?</h3><p>A git commit message is a short description of what you changed and why you changed it. Each commit message is stored permanently in Git history.</p><p>A good commit message answers this question: <br><strong>“If I read this message after 6 months, will I understand the change?”</strong></p><h3>Basic Structure of a Good Commit Message</h3><pre>fix: resolve login validation error Password validation failed when special characters were used. Added proper regex handling and test cases.</pre><pre>fix: resolve login validation error<br><br>Password validation failed when special characters were used.<br>Added proper regex handling and test cases.</pre><h3>Common Commit Message Types</h3><p>Using a type makes your commit history more readable.</p><p><strong>Most used types: Examples:</strong></p><ul><li><strong>feat</strong> — A new feature</li><li><strong>fix</strong> — A bug fix</li><li><strong>docs</strong> — Documentation changes</li><li><strong>style</strong> — Formatting, spacing</li><li><strong>refactor</strong> — Code improvement</li><li><strong>test</strong> — Tests</li><li><strong>chore</strong> — Maintenance tasks</li></ul><pre>feat: add user profile edit page <br>fix: correct total price calculation <br>docs: update README installation steps <br>refactor: simplify authentication logic</pre><h3>How to Write a Good Commit Message</h3><p><strong>1. Use the Imperative Mood</strong></p><p>Write messages like you are giving a command.</p><p><strong>✅ Good</strong></p><ul><li>add validation for email field</li><li>fix payment calculation bug</li></ul><p><strong>❌ Bad</strong></p><ul><li><strong>added validation</strong></li><li><strong>fixed a bug</strong></li></ul><p><strong>2. Keep the First Line Short</strong></p><p>Write messages limit to 50 characters and clear and meaningful.</p><p><strong>Example:</strong></p><pre>feat: enable password reset via email</pre><p><strong>3. Explain “Why” in the Description</strong></p><p>The code already shows what changed. The message should explain why.</p><p><strong>Example:</strong></p><pre>fix: prevent app crash on empty input <br><br>    The app crashed when the input field was empty.<br>    Added null checks and default values.</pre><p><strong>4. One Commit = One Purpose</strong></p><p>Do not mix unrelated changes.</p><p><strong>❌ Bad</strong></p><pre>fix login bug and update UI and add README</pre><p><strong>✅ Good</strong></p><pre>fix: handle invalid login credentials</pre><pre>style: improve login page layout</pre><pre>docs: update README with screenshots</pre><h3>Bad vs Good Commit Messages</h3><p>❌ Bad Examples</p><ul><li>update</li><li>final</li><li>changes done</li><li>bug fix</li></ul><p>✅ Good Examples</p><ul><li>feat: implement user registration API</li><li>fix: handle null pointer exception in order service</li><li>refactor: reduce duplicate code in payment module</li><li>docs: add API usage examples</li></ul><h3>Commit Message Best Practices</h3><ul><li>Commit often, but with meaning</li><li>Write messages for humans, not machines</li><li>Be consistent with your format</li><li>Assume someone else will read your commits</li><li>Your future self is also “someone else” `Hee Heee`</li></ul><h3>Why Good Commit Messages Improve Productivity</h3><ul><li><strong>Save time: </strong>You can quickly understand project history without reading all the code.</li><li><strong>Improve Team Communication: </strong>Your commit messages explain your thinking to teammates.</li><li><strong>Easier Debugging: </strong>You can identify when and why a bug was introduced.</li><li><strong>Professional Development: </strong>Good commit history shows clean work habits, strong communication skills and industry-level practices.</li></ul><h3>Simple Commit Message Checklist</h3><p>Before committing, ask yourself:</p><ul><li>Does this explain what changed?</li><li>Does it explain why?</li><li>Is it short and clear?</li><li>Is it related to only one task?</li></ul><p><strong><em>Don’t try to be perfect from day one. Start writing clear, meaningful, and honest commit messages.</em></strong></p><p><em>Originally published at </em><a href="https://isfewinfo.blogspot.com/2026/01/write-better-code-history-complete.html"><em>https://isfewinfo.blogspot.com</em></a><em> on January 14, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45ea81edb376" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding bcrypt: Secure Password Hashing in Python]]></title>
            <link>https://medium.com/@isurushehara/understanding-bcrypt-secure-password-hashing-in-python-60e5f12b676d?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/60e5f12b676d</guid>
            <category><![CDATA[hash]]></category>
            <category><![CDATA[bcrypt]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 16:50:45 GMT</pubDate>
            <atom:updated>2025-11-10T16:50:45.083Z</atom:updated>
            <content:encoded><![CDATA[<p>Protecting user passwords is one of the most important parts of any authentication system. Instead of storing passwords as plain text, developers use hashing algorithms to convert passwords into unreadable strings. One of the most secure and widely used hashing algorithms today is bcrypt. In this article, I will explain what bcrypt is, how password hashing works, and how to implement bcrypt in Python with practical examples of registration and login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*wzbDjuss9FlV5To5XkQ8bg.jpeg" /></figure><p><strong>What bcrypt is</strong></p><p>bcrypt is a password-hashing function based on the Blowfish cipher. It is designed to be:</p><ul><li><strong>Slow</strong> — prevents brute-force attacks</li><li><strong>Salted</strong> — prevents rainbow table attacks</li><li><strong>Secure</strong> — against modern cracking techniques</li></ul><p>bcrypt is widely used in:</p><ul><li>Web applications</li><li>Authentication APIs</li><li>Modern frameworks</li><li>Secure login systems</li></ul><p><strong>How Password Hashing Works</strong></p><p>Password hashing is a process that converts a readable password into a fixed-length, irreversible string. This string is called a <strong>hash</strong>, and it cannot be converted back to the original password.</p><p>Here’s how hashing works in an authentication system:</p><ol><li>User enters a password during registration.</li><li>The system generates a unique <strong>salt</strong> (a random value).</li><li>The password and salt are combined and passed through a hashing algorithm.</li><li>The resulting hash is stored in the database instead of the real password.</li><li>During login, the user enters a password again.</li><li>The system hashes the input password using the same method and compares it with the stored hash.</li><li>If both hashes match → access is granted.</li></ol><p>Because hashing is <strong>one-way</strong>, even if someone accesses the database, they cannot decode the original passwords. bcrypt strengthens this process by slowing down hashing operations and using strong salts, making attacks extremely difficult.</p><p><strong>How to Implement bcrypt in Python</strong></p><p>Implementing bcrypt in Python is straightforward, thanks to the bcrypt library. The process involves two main steps: <strong>hashing passwords</strong> and <strong>verifying passwords</strong>.</p><p><strong>1. Install bcrypt</strong></p><p>Before writing code, install the library:</p><pre>pip install bcrypt</pre><p><strong>2. Hashing a password</strong></p><p>This step is used during user registration.</p><pre>import bcrypt<br><br>password = &quot;MySecurePassword&quot;.encode(&quot;utf-8&quot;)<br>salt = bcrypt.gensalt()<br>hashed_password = bcrypt.hashpw(password, salt)</pre><p>Here, bcrypt automatically:</p><ul><li>Generates a secure random salt</li><li>Mixes the password with the salt</li><li>Produces a strong, irreversible hash</li></ul><p>You store hashed_password in your database.</p><p><strong>3. Verifying the password</strong></p><p>This step is used when a user logs in.</p><pre>entered_password = &quot;MySecurePassword&quot;.encode(&quot;utf-8&quot;)<br><br>if bcrypt.checkpw(entered_password, hashed_password):<br>    print(&quot;Password is correct&quot;)<br>else:<br>    print(&quot;Invalid password&quot;)</pre><p>checkpw() handles the comparison securely and automatically extracts the salt from the stored hash.</p><p><strong>Practical Examples of Registration &amp; Login</strong></p><p>Below is a simple implementation of registration and login using bcrypt.</p><p><strong>Registration Example (Hashing &amp; Saving Password)</strong></p><pre>import bcrypt<br><br>def register_user(password):<br>    password = password.encode(&quot;utf-8&quot;)<br>    hashed = bcrypt.hashpw(password, bcrypt.gensalt())<br>    return hashed  # Save this in your database<br><br># Simulate a user registering<br>stored_hash = register_user(&quot;UserPassword123&quot;)<br>print(&quot;Stored Hash:&quot;, stored_hash)</pre><p>During registration:</p><ul><li>The password is converted to bytes</li><li>bcrypt generates a salt</li><li>The password is hashed securely</li><li>Only the hash is stored in the database</li></ul><p><strong>Login Example (Verifying the Password)</strong></p><pre>import bcrypt<br><br>def login_user(entered_password, stored_hash):<br>    entered_password = entered_password.encode(&quot;utf-8&quot;)<br>    return bcrypt.checkpw(entered_password, stored_hash)<br><br># Simulate a login attempt<br>if login_user(&quot;UserPassword123&quot;, stored_hash):<br>    print(&quot;✅ Login successful!&quot;)<br>else:<br>    print(&quot;❌ Incorrect password.&quot;)</pre><p>During login:</p><ul><li>The user enters a password</li><li>bcrypt hashes it using the same salt stored inside the hash</li><li>If both hashes match → access is granted</li></ul><p><em>Note:</em> If you want to explore a complete authentication system that uses different tech stacks (Python, Node.js, MERN, MEVN, JWT, etc.), you can refer to my GitHub repository <a href="https://github.com/isurushehara/Authentication_Basic"><strong>here</strong></a><strong>.</strong></p><p>This project demonstrates multiple real-world authentication implementations, making it a great resource to understand how password hashing and verification work across various technologies.</p><p><strong>Conclusion</strong></p><p>Implementing bcrypt for password verification in Python is one of the most effective ways to secure user authentication. bcrypt strengthens password protection through salts, slow hashing, and resistance to brute-force attacks. By hashing passwords during registration and verifying them safely during login, applications can significantly reduce security risks.</p><p>With just a few lines of code, developers can create a reliable and secure authentication flow, making bcrypt a practical choice for real-world systems and modern applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60e5f12b676d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Hide Folders in Windows 10/11: Explorer, Search, Permissions, and Hidden Shares]]></title>
            <link>https://medium.com/@isurushehara/how-to-hide-folders-in-windows-10-11-explorer-search-permissions-and-hidden-shares-3266ab9786de?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3266ab9786de</guid>
            <category><![CDATA[pc-tips]]></category>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[hide]]></category>
            <category><![CDATA[hide-folder]]></category>
            <category><![CDATA[how-to-hide-folder]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 13:22:15 GMT</pubDate>
            <atom:updated>2025-09-10T13:30:03.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YfCzs-2O6PdRvyeA" /></figure><p>Folders are where privacy and access control really matter. In this post, we’ll cover several ways to make a folder vanish from File Explorer, keep it out of Windows Search, block other local users from opening or even listing it, and a network trick to hide a share from browse lists. For each method, you’ll see what it hides from, how to do it, and how to undo it safely. By the end, you’ll know which option to use for tidying up, casual privacy, or stricter local control.</p><p><strong>Before you start: how to reveal hidden items (so you can check your work)</strong></p><p><strong>Show hidden folders:</strong></p><ul><li>Windows 11: File Explorer &gt; View &gt; Show &gt; Hidden items</li><li>Windows 10: File Explorer &gt; View tab &gt; check “Hidden items”</li></ul><p><strong>Show protected OS files (super-hidden):</strong><br>File Explorer &gt; Options &gt; View tab &gt; uncheck “Hide protected operating system files (Recommended)”</p><p><em>Tip: Turn these back off afterward if you don’t want to see hidden stuff all the time.</em></p><p><strong>Way 01: Hidden attribute (and optionally its contents)</strong></p><p><strong>Hides from:</strong> File Explorer when “Show hidden items” is off.</p><p><strong>GUI:</strong> Right-click the folder &gt; Properties &gt; check “Hidden” &gt; OK. If prompted, choose whether to apply to this folder only or also to subfolders/files.</p><p><strong>Command line:</strong></p><pre># Hide just the folder<br>attrib +h &quot;C:\Path\SecretFolder&quot;</pre><pre># Hide everything inside too<br>attrib +h /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><pre># Unhide all<br>attrib -h /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><p><strong>Notes:</strong> This is quick camouflage. Anyone who enables “Hidden items” will still see it. The folder remains accessible by direct path (e.g., typing C:\Path\SecretFolder).</p><p><strong>Way 02: Super hidden (System + Hidden)</strong></p><p><strong>Hides from:</strong> Explorer even when “Show hidden items” is on — so long as “Hide protected operating system files” remains enabled (default).</p><p><strong>Command line:</strong></p><pre># Hide the folder<br>attrib +s +h &quot;C:\Path\SecretFolder&quot;</pre><pre># Optionally apply to contents<br>attrib +s +h /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><pre># Unhide<br>attrib -s -h &quot;C:\Path\SecretFolder&quot;<br>attrib -s -h /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><p><strong>Reveal in Explorer:</strong> File Explorer &gt; Options &gt; View &gt; uncheck “Hide protected operating system files (Recommended)”.</p><p><strong>Caution:</strong> Some backup/sync tools treat System files differently. Don’t mark big data trees as System unless you mean it.</p><p><strong>Way 03: Hide from Windows Search (indexer)</strong></p><p><strong>Hides from:</strong> Start/Explorer search results that rely on the index.</p><p><strong>GUI (recommended):</strong></p><ul><li>Right-click the folder &gt; Properties &gt; Advanced… &gt; uncheck “Allow files in this folder to have contents indexed in addition to file properties” &gt; OK.</li><li>Or exclude the path entirely: Control Panel &gt; Indexing Options &gt; Modify &gt; uncheck the folder &gt; OK.</li></ul><p><strong>Command line (sets the “Not content indexed” attribute):</strong></p><pre># Mark folder and contents<br>attrib +i &quot;C:\Path\SecretFolder&quot; &amp; attrib +i /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><pre># Revert<br>attrib -i &quot;C:\Path\SecretFolder&quot; &amp; attrib -i /s /d &quot;C:\Path\SecretFolder\*&quot;</pre><p><strong>Tips:</strong></p><ul><li>Excluding the folder in Indexing Options is more reliable than toggling attributes on individual items.</li><li>Search can still find some non-indexed items by filename during on-demand scans. If you use “Enhanced” search (Settings &gt; Privacy &amp; security &gt; Searching Windows), double-check your exclusions.</li></ul><p><strong>Way 04: Hide from other local users (permissions/ACLs)</strong></p><p><strong>Hides from:</strong> Standard users you remove from access. They won’t be able to list or open the folder. Administrators can still take ownership.</p><p><strong>Best practice:</strong> Put sensitive files inside a private folder and restrict that folder (so listing is blocked too).</p><p><strong>Lock down via Command Prompt</strong> (run as your account; keep Administrators and SYSTEM):</p><pre># Stop inheriting from the parent<br>icacls &quot;C:\Path\Private&quot; /inheritance:r</pre><pre># Give yourself full control (propagate to children)<br>icacls &quot;C:\Path\Private&quot; /grant:r &quot;%USERNAME%&quot;:(OI)(CI)F</pre><pre># Remove broad groups<br>icacls &quot;C:\Path\Private&quot; /remove:g Users &quot;Authenticated Users&quot; Everyone</pre><pre># Optional: explicitly keep admins/system<br>icacls &quot;C:\Path\Private&quot; /grant Administrators:(OI)(CI)F SYSTEM:(OI)(CI)F</pre><pre># Undo (restore inheritance from parent)<br>icacls &quot;C:\Path\Private&quot; /inheritance:e</pre><p><strong>Tips:</strong> Test with a different standard user account to confirm the lock-down. Avoid “Deny” entries unless you have a specific reason; allow-only ACLs are simpler to manage.</p><p><strong>Way 05: Hide a shared folder name (network)</strong></p><p><strong>Hides from:</strong> Network “browse lists” (it won’t show up in Network/Explorer). It does not block direct access.</p><pre># Create a “hidden” share (trailing $ hides the name)<br>net share Secret$=&quot;C:\Path\SecretFolder&quot; /grant:DOMAIN\User,READ</pre><pre># Access directly<br>\\ComputerName\Secret$</pre><pre># Remove the share<br>net share Secret$ /delete</pre><p><strong>Important:</strong> This is obscurity only. Enforce NTFS and share permissions for real access control.</p><p><strong>Which method should you use?</strong></p><ul><li>Quick cleanup or light privacy: Hidden or Super hidden.</li><li>Keep it out of search results: Exclude the folder in Indexing Options.</li><li>Prevent other local users from listing or opening it: Restrict ACLs on a private folder.</li><li>Avoid casual discovery on the network: Use a hidden share name (with proper permissions).</li></ul><p><strong>Pro tip: hiding ≠ protecting</strong></p><p>If confidentiality matters, use encryption:</p><ul><li><strong>EFS (Encrypting File System):</strong> Right-click folder &gt; Properties &gt; Advanced &gt; “Encrypt contents to secure data.” Great for single-user machines. Back up your EFS certificate.</li><li><strong>BitLocker:</strong> Full-drive encryption for laptops/shared PCs. Protects everything at rest.</li></ul><p><strong>Wrap up (and what’s next)</strong></p><p>Now you can hide a folder cleanly, keep it out of Search, and lock it down from other local users, while still having a clear path to unhide or revert. For anything sensitive, pair these visibility tweaks with encryption. In the next post, we’ll tackle disks and partitions, how to hide entire volumes by removing drive letters, using mount points and flags, and even taking disks offline.</p><p><em>Originally published at </em><a href="https://isfewinfo.blogspot.com/2025/09/how-to-hide-folders-in-windows-1011.html"><em>https://isfewinfo.blogspot.com</em></a><em> on September 10, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3266ab9786de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Hide Files in Windows 10/11: Explorer, Search, Permissions, and NTFS Streams]]></title>
            <link>https://medium.com/@isurushehara/how-to-hide-files-in-windows-10-11-explorer-search-permissions-and-ntfs-streams-391967bf4279?source=rss-4e8ef61b71b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/391967bf4279</guid>
            <category><![CDATA[hide]]></category>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[pc-tips]]></category>
            <category><![CDATA[how-to-hide-files]]></category>
            <category><![CDATA[hide-file]]></category>
            <dc:creator><![CDATA[Isuru Shehara]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 18:46:06 GMT</pubDate>
            <atom:updated>2025-09-07T04:43:43.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*blB_aHf310wCGkht" /></figure><p>If you just want a file to disappear from casual view, Windows gives you a few handy levers, from a quick “Hidden” flag to deeper tricks like NTFS alternate data streams. In this first post of a 3‑part series, I’ll cover simple, reliable ways to hide a file from File Explorer, Search, or other local users, and how to reverse every change. We’ll also call out what each method does (and doesn’t) hide.</p><p><strong>Before you start: how to see hidden things again</strong></p><p><strong>Show hidden files:</strong></p><ul><li>Windows 11: File Explorer &gt; View &gt; Show &gt; Hidden items</li><li>Windows 10: File Explorer &gt; View tab &gt; check “Hidden items”</li></ul><p><strong>Show “protected OS files” (super-hidden):</strong></p><p>File Explorer &gt; Options &gt; View tab &gt; uncheck “Hide protected operating system files (Recommended)”</p><p><em>Tip: Remember to turn these off again if you don’t want hidden items visible afterward.</em></p><p><strong>Way 01: Quick and simple (the Hidden attribute)</strong></p><p><strong>What it hides from:</strong> File Explorer when “Hidden items” is off. Most casual users won’t see it.</p><p><strong>GUI:</strong> Right-click the file &gt; Properties &gt; check “Hidden” &gt; OK</p><p><strong>Command Prompt:</strong></p><pre>Hide:   attrib +h &quot;D:\hide\file.txt&quot;</pre><pre>Unhide: attrib -h &quot;D:\hide\file.txt&quot;</pre><p><strong>PowerShell:</strong></p><pre># Hide</pre><pre>$path = &#39;D:\hide\file.txt&#39;</pre><pre>$item = Get-Item $path</pre><pre>$item.Attributes = $item.Attributes -bor [IO.FileAttributes]::Hidden</pre><pre># Unhide<br>$item = Get-Item &#39;D:\hide\file.txt&#39;</pre><pre>$item.Attributes = $item.Attributes -band (-bnot [IO.FileAttributes]::Hidden)</pre><p><strong>Gotcha:</strong> Anyone who enables “Hidden items” in Explorer will see it. This is for obscurity, not protection.</p><p><strong>Way 02 — Super-hidden (mark it as System + Hidden)</strong></p><p><strong>What it hides from:</strong> File Explorer even when “Hidden items” are shown, as long as “Hide protected operating system files” remains enabled (which is the default on most PCs).</p><p><strong>Command Prompt:</strong></p><pre>Hide:   attrib +s +h &quot;D:\hide\file.txt&quot;</pre><pre>Unhide: attrib -s -h &quot;D:\hide\file.txt&quot;</pre><p><strong>Reveal in Explorer:</strong> open Folder Options (File Explorer &gt; Options) &gt; View &gt; uncheck “Hide protected operating system files (Recommended)”.</p><p><strong>Notes:</strong></p><ul><li>This is more camouflaged than plain Hidden.</li><li>Don’t mark whole folders System unless you really mean it — backup/sync tools can behave differently with system files.</li></ul><p><strong>Way 03: Hide from Windows Search (the indexer)</strong></p><p><strong>What it hides from:</strong> Start/Explorer search results that rely on the index.</p><p><strong>Best method:</strong> exclude the containing folder — reliable and easy to reverse.</p><ol><li>Go to Control Panel &gt; Indexing Options &gt; Modify</li><li>Click Modify</li><li>Uncheck the folder you want excluded (or check only what you want included)</li><li>Click OK and give the index a minute to update</li></ol><p><strong>Per-file attribute (less visible, less reliable):</strong></p><p>Not content indexed (prevents indexing of file contents; the name may still be searchable)</p><pre>Hide:   attrib +i &quot;D:\hide\file.txt&quot;</pre><pre>Unhide: attrib -i &quot;D:\hide\file.txt&quot;</pre><p><strong>Tips:</strong></p><ul><li>Search can still find non-indexed items during on-demand scans, especially by file name. Excluding the entire folder is more consistent than toggling single files.</li><li>If Windows Search is set to Enhanced (index entire PC), double check your exclusions.</li></ul><p><strong>Way 04: Hide from other local users with permissions (ACLs)</strong></p><p><strong>What it hides from:</strong> Other standard users browsing your folders. They won’t be able to list or open your private location. Administrators can still take ownership.</p><p><strong>Best practice:</strong> put the file in a private folder and restrict the folder’s permissions (folder ACLs control directory listing).</p><p>Create a private folder, move your file into it (example: D:\hide)</p><p><strong>Lock down the folder via Command Prompt</strong> (run as Administrator if needed):</p><pre># Stops inheriting permissions from the parent <br>icacls &quot;D:\hide&quot; /inheritance:r</pre><pre># Removes broad groups (Users, Authenticated Users) <br>icacls &quot;D:\hide&quot; /remove:g Users &quot;Authenticated Users&quot;</pre><pre># Grants you full control, and ensures files and subfolders inherit it <br>icacls &quot;D:\hide&quot; /grant:r &quot;&lt;YOUR_USERNAME&gt;:(OI)(CI)F&quot;</pre><p><em>Don’t know your exact username? Run </em><strong><em>whoami</em></strong><em> in the console.</em></p><pre>#To revert: Re-enable inheritance (and reapply parent permissions) <br>icacls &quot;D:\hide&quot; /inheritance:e</pre><p><em>Note: If you also need to restore group access explicitly, add them back with </em><strong><em>icacls /grant</em></strong><em>.</em></p><p><strong>Way 05: Bonus (advanced) — hide data inside an NTFS Alternate Data Stream</strong></p><p><strong>What it hides from:</strong> File Explorer, most casual browsing, and many basic tools. Your data is stored “inside” another file and doesn’t show up as a separate file. Works on NTFS volumes.</p><p><strong>Example (Command Prompt):</strong></p><pre># Create a carrier file (any file will do)</pre><pre>echo placeholder&gt;&quot;D:\hide\carrier.txt&quot;</pre><pre># Write a secret stream<br>echo my secret note&gt;&quot;D:\hide\carrier.txt:secret.txt&quot;</pre><pre># Open it in Notepad<br>notepad &quot;D:\hide\carrier.txt:secret.txt&quot;</pre><pre># Read it in the console</pre><pre>more &lt; &quot;D:\hide\carrier.txt:secret.txt&quot;</pre><p><strong>PowerShell (Windows 10/11):</strong></p><pre># List streams</pre><pre>Get-Item -Path &#39;D:\hide\carrier.txt&#39; -Stream *</pre><pre># Write / read / remove a stream<br>Set-Content -Path &#39;D:\hide\carrier.txt&#39; -Stream &#39;secret&#39; -Value &#39;my secret note&#39;<br>Get-Content -Path &#39;D:\hide\carrier.txt&#39; -Stream &#39;secret&#39;</pre><pre>Remove-Item -Path &#39;D:\hide\carrier.txt&#39; -Stream &#39;secret&#39;</pre><p><em>To delete all streams, delete the carrier file. Caution: Some tools (certain backup, AV, or sync apps) may strip or miss ADS data; test before relying on it.</em></p><p><strong>Which method should you pick?</strong></p><ul><li>Quick “don’t look at this”: Hidden or Super-hidden</li><li>Keep it out of Start/Explorer search: exclude the folder in Indexing Options</li><li>Keep other local users out: move the file into a locked-down folder (ACLs)</li><li>Tuck data away inside another file: NTFS ADS (advanced, NTFS-only)</li></ul><p><strong>Important: hiding ≠ protecting</strong></p><p>If confidentiality matters, use encryption:</p><ul><li><strong>EFS (Encrypting File System):</strong> right-click file/folder &gt; Properties &gt; Advanced &gt; Encrypt contents to secure data. Great for single-user devices. Back up your EFS certificate!</li><li><strong>BitLocker:</strong> full-drive encryption. Ideal for laptops and shared devices. Protects everything at rest.</li></ul><p><strong>Wrap up (and what’s next)</strong></p><p>You’ve got a toolkit to make a file vanish from Explorer or search — and to bring it back just as easily. Keep notes of any attributes or ACLs you change so you can undo them later, and remember: these tricks are for convenience and privacy, not foolproof security. In the next post, <strong>we’ll scale up to entire folders </strong>— how to hide directories (and their contents), manage indexing globally, leverage permissions safely, and add a few UI camouflage tricks.</p><p><em>Originally published at </em><a href="https://isfewinfo.blogspot.com/2025/09/how-to-hide-files-in-windows-1011.html"><em>https://isfewinfo.blogspot.com</em></a><em> on September 6, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=391967bf4279" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>