<?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 Kalp Sedalia on Medium]]></title>
        <description><![CDATA[Stories by Kalp Sedalia on Medium]]></description>
        <link>https://medium.com/@kalpsedalia?source=rss-4ff8dfc871d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V8Wpr9HXwus1U1mCy2Z3Lg.png</url>
            <title>Stories by Kalp Sedalia on Medium</title>
            <link>https://medium.com/@kalpsedalia?source=rss-4ff8dfc871d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:45:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kalpsedalia/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[Book reading habit: Is it really helping you?]]></title>
            <link>https://medium.com/@kalpsedalia/book-reading-habit-is-it-really-helping-you-59f39b4c054?source=rss-4ff8dfc871d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/59f39b4c054</guid>
            <category><![CDATA[new-year]]></category>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Kalp Sedalia]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 17:27:57 GMT</pubDate>
            <atom:updated>2023-01-01T17:39:24.405Z</atom:updated>
            <content:encoded><![CDATA[<p>Reading a book is a good habit that most successful people recommend it to enhance your knowledge and develop your skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dx33zfr6JIRmyCVYwAlZyA.png" /><figcaption>Photo by Kelly Sikkema on Unsplash</figcaption></figure><p>If you are not a person who pays attention to book reading habits, then I will recommend that you should develop this habit. It will be extremely beneficial in your life. So you are probably wondering why I’m questioning whether a book-reading habit is really helping you or not. Let me explain to you in more detail.</p><p>If you are a beginner, I recommend that you start with a book in any genre that interests you. If you already have a habit of reading books, then book selection is more important, which brings more value to you.</p><h3>Reading a good book is like taking a journey.</h3><p>People who read a lot of books may unintentionally run into a book reading marathon. There are some platforms where you may define a reading goal for a year and maintain your wishlist of books to read. And some people add ludicrous goals like reading 100 books a year. You don’t get anything from it unless you have a photographic memory. These numbers mirror the likes that any post receives on social media.</p><p>For example, if you are reading many self-help books, but you can’t remember anything or are not able to apply into your daily life, then there is no purpose in reading the book. It’s just a &quot;Marathon&quot; of book reading, nothing more!</p><p>Similarly, let’s say you are an investment banker and you are reading a fairy tale storybook, then it entertains you but does not advance your expertise. I’m not saying that you shouldn’t read fairy tale stories, but if that’s all you read, it won’t benefit you in terms of knowledge.</p><p>It is always preferable to concentrate on reading 4-5 books every year (again quantity of books may vary person to person based on how quickly they consume the knowledge and apply it to their daily lives) and attempt to apply them in your life in order to make changes or develop new skills. In this way, you are gaining from the book, and this habit is adding value to your life.</p><h3>Reading books is a fantastic habit to have, but selecting the right book will benefit you more.</h3><p>I hope it will be useful to you in making this year’s book selections.</p><p><strong><em>Happy Reading !!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59f39b4c054" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind Index Pattern — Search Strategy for Encrypted Information]]></title>
            <link>https://medium.com/@kalpsedalia/blind-index-pattern-search-strategy-for-encrypted-information-2e74ae2b9e30?source=rss-4ff8dfc871d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e74ae2b9e30</guid>
            <category><![CDATA[search-strategy]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Kalp Sedalia]]></dc:creator>
            <pubDate>Sat, 26 Mar 2022 17:13:10 GMT</pubDate>
            <atom:updated>2022-03-26T17:13:10.332Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Blind Index Pattern — Search Strategy for Encrypted Information</strong></h3><p>The world is now data driven. The data is so crucial and its security is most important for any organization. Companies are spending millions of dollars on data security. Encryption is most crucial part of data security.</p><p>In every business, there is sensitive information to store. Like, customer contact details — email and phone number, payment information — credit card information or bank details, account information — password and security answers and many more are <strong>Personal Identification (PI)</strong> information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V53VlWGSDxB7ZFZi" /><figcaption>Photo by <a href="https://unsplash.com/@evgenit?utm_source=medium&amp;utm_medium=referral">Evgeni Tcherkasski</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this tutorial, we are going to implement <em>search strategy</em> on personal information using “<strong>Blind Indexing Pattern</strong>”.</p><h3><strong>What is Blind Indexing?</strong></h3><p>To make encrypted information searchable, create dedicated column in your database table for each search strategy and create index on it.</p><p>I am sure that you are not here for definition of blind index. So, let’s jump on to the example.</p><p>Here, I am going to demonstrate you the example of <strong><em>contact management system</em></strong>. In simple words, consider it as address book.</p><p>Let’s check our technical stack to develop address book system.</p><ul><li><strong>Java 8 (</strong>or above<strong>)</strong></li><li><strong>Spring Boot</strong> — Most commonly used framework for Microservice development.</li><li><strong>MongoDB</strong> — The NoSQL DB which is most suitable for contact management system.</li></ul><p>Let’s develop <strong>POST</strong> endpoint <em>/contact/create</em> which will save contact into database. Here is our request body:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/479fe8574eda8cd221fd8a269058a03f/href">https://medium.com/media/479fe8574eda8cd221fd8a269058a03f/href</a></iframe><p>But we want to save PI information — <em>emailAddress</em> and <em>mobileNumber</em> in encrypted format and want to make it searchable.</p><p>We need to generate blind index to make PI field searchable. For blind index generation, we need to create hash out of the value and retrieve last <em>N</em> digits.</p><p>Let’s generate hash using SHA-512 algorithm. We will need 16-bits key to generate hash value. Here, I have added sample key in comment. If you want to generate it, you can use below code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31c0e0d8919e31ecc9e673ff93ca5519/href">https://medium.com/media/31c0e0d8919e31ecc9e673ff93ca5519/href</a></iframe><p>Now, we are generating blind index.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13024445a7b1f85a08436a161d515cf7/href">https://medium.com/media/13024445a7b1f85a08436a161d515cf7/href</a></iframe><p>For <em>mobileNumber, </em>we will get hash value something like — “610439623a9f9bd8ba7a60af1563a2faa6efde3b27e86670ae39b0d728aa0d75f87633fc394b002bfe83fd48d4c2b097bc70d4b69bc52f111b7907dff4e8bc17”</p><p>If we keep storing full hash information into database then it will be unique for each unique mobile number. And this will be very easy for attacker.</p><p>We need to make this ambiguous. So, it will be very hard to identify actual record. So, we are taking last 4 digits of hash value — “bc17”. Many mobile number value can endup with ending value of “bc17”. This will result in multiple records for single blind index value.</p><p>Our blind index function should generate same blind index value for same mobile number every time. You should add index on blind index database column to make it searchable.</p><p>Now, we can encrypt our actual information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47430f7ccc04094816c9df00a3ea408f/href">https://medium.com/media/47430f7ccc04094816c9df00a3ea408f/href</a></iframe><p>Now, you can replace the actual value of mobile number and email address with encrypted value and save into database. Our final record will be look like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e0615646c4fd02393644b65a9e80aba/href">https://medium.com/media/5e0615646c4fd02393644b65a9e80aba/href</a></iframe><p>You can now search contact record by mobile number or email address. During search call, you need to generate blind index from input mobile number or email address. Then, you can query database with blind index fields — <em>mobile_bidx</em> or <em>email_bidx</em>.</p><p>Here, I am querying data using email bidx. It returns two records with same blind index.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/680292499e9f9d5003ba02a98403e5a4/href">https://medium.com/media/680292499e9f9d5003ba02a98403e5a4/href</a></iframe><p>Now, you have to decrypt each email address (or mobile number) and compare with input email (or mobile) value. If matches, you found your record.</p><p>This strategy will be helpful when you need to store PII data in encrypted form but also make it searchable.</p><p>You can find blind index strategy implementation on GitHub.</p><p><a href="https://github.com/kalpsedalia/blind-index-pattern-java">GitHub - kalpsedalia/blind-index-pattern-java: Blind Index Pattern implementation</a></p><p>In this example, I have only implemented blind index on full value of email and mobile. If you need to search on partial value, you have to create separate blind index column (<em>e.g</em>. email_partial_bidx) and generate blind index value.</p><p>Try implementing this strategy in your favourite programming language and comment your questions or feedback. Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e74ae2b9e30" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>