<?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 Divija Godse on Medium]]></title>
        <description><![CDATA[Stories by Divija Godse on Medium]]></description>
        <link>https://medium.com/@divijagodse?source=rss-8e253f86bc93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4JzedCRSjBBka-A86hfnIA.png</url>
            <title>Stories by Divija Godse on Medium</title>
            <link>https://medium.com/@divijagodse?source=rss-8e253f86bc93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:57:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divijagodse/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[Face recognition system security analysis for authentication]]></title>
            <link>https://medium.com/@divijagodse/face-recognition-system-security-analysis-for-authentication-86866066533d?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/86866066533d</guid>
            <category><![CDATA[face-recognition]]></category>
            <category><![CDATA[image-pr]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Wed, 17 Apr 2024 07:13:08 GMT</pubDate>
            <atom:updated>2024-05-04T06:10:49.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syFgcweXvz1pSLhNZeuo4A.png" /><figcaption>Source: <a href="https://pixlr.com/image-generator/">Pixlr</a></figcaption></figure><p>Do you have an identical twin sibling? If not, then you need not worry about your phone being unlocked by someone else. Phones now-a-days generally have face recognition based phone unlocking systems.</p><p>This is a world of smart gadgets, where nothing can be done without the use of these smart gadgets. The Gen-z’s are almost addicted to smartphones, making security a very important task. Face Recognition systems are a very integral and vital part of this smartphone security.</p><h3><strong>History of Facial Recognition</strong></h3><p>Though the Face Recognition system feels as a new age technology, the technology of face recognition can be dated back to the 1960s. Early research on face recognition primarily involved manual or semi-automatic methods relying on simple geometric or appearance-based features for feature extraction and matching.</p><blockquote>Over time, face recognition’s image processing has evolved, initially relying on manual methods. In the 1980s and 1990s, computational techniques like Eigen faces emerged, followed by efficient algorithms like Viola-Jones in the early 2000s. The 2010s saw a revolution with deep learning, notably CNNs, significantly boosting accuracy. Current trends focus on advanced deep learning methods and addressing ethical and privacy concerns. Overall, image processing in face recognition has continually progressed, driven by technological advancements and societal needs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*uoHesgNSMQNLFg8QPnoA5Q.png" /><figcaption>Source: <a href="https://undraw.co/">Undraw</a></figcaption></figure><h3><strong>Facial Recognition</strong></h3><p>Face Recognition is briefly categorized into <strong>face identification</strong> and <strong>face verification.</strong></p><blockquote><strong><em>Face identification identifies the specific person</em>. </strong>This is specifically seen in the attendance monitoring systems in school and industries. The system extracts facial features and compares it with the database of all the people.</blockquote><blockquote><strong><em>Face verification is the process which determines whether a person is who they claim to be.</em></strong> This is the one which is used in the security systems of our mobile phones. The system checks the facial features with the features which have been fed to the system while setting up the phone.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dxF02Zs3V7OTZY4XT-FS1w.gif" /><figcaption>Source: <a href="https://dribbble.com/shots/7749099-Face-Scanner-UI-GIF">Dribble</a></figcaption></figure><h3><strong>Facial Recognition Process</strong></h3><p>Now we shall dive more into the steps that are required for the facial recognition system. We would look into the stepwise procedure of the Facial Recognition system used for security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*omP7ztGIu2m-0dC8bG_wMA.png" /><figcaption>Fig. 1: Steps for Facial Recognition</figcaption></figure><h4>Image Acquisition:</h4><p>Our smartphones will capture our face and send it as a raw image to the system. This is the process of image acquisition.</p><h4>Image Preprocessing:</h4><p>This raw image consists of noise and uneven lighting and thus requires preprocessing. What exactly happens in this preprocessing?</p><p><strong><em>Noise Reduction:</em></strong></p><ul><li>When we capture facial images, there can be unwanted elements like graininess or speckles, which we refer to as noise. This noise can obscure important facial details, making it difficult for the recognition system to accurately identify individuals.</li><li>To address this, noise reduction techniques like Gaussian blur or median filtering are applied. These techniques smooth out the image, removing any unwanted noise while preserving the essential facial features.</li><li>By reducing noise, we ensure that the facial recognition algorithm can focus on the key characteristics of the face without being misled by irrelevant visual distractions.</li></ul><p><strong><em>Color Correction:</em></strong></p><ul><li>Lighting conditions vary greatly, leading to differences in color representation across facial images. This variability can hinder the accuracy of the recognition system.</li><li>Color correction techniques like histogram equalization help to standardize the color distribution in images. They ensure that facial features appear consistent regardless of lighting conditions or camera settings.</li><li>By correcting color variations, we provide the recognition algorithm with a more reliable set of facial images to analyze, improving its ability to accurately identify individuals based on their facial characteristics.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*7ZaX3woL7DgkR3ThbsyLaw.png" /><figcaption>Fig.2: Components of Image Preprocessing</figcaption></figure><p><strong><em>Contrast Enhancement:</em></strong></p><ul><li>Facial recognition algorithms rely on contrasts between facial features to distinguish one individual from another. However, variations in lighting or image quality can reduce these contrasts.</li><li>Contrast enhancement techniques, such as histogram stretching, amplify the differences in intensity between light and dark areas of the face. This makes facial features more pronounced and easier for the recognition system to analyze.</li><li>By enhancing contrast, we ensure that the recognition algorithm has clearer and more distinct facial features to work with, improving its accuracy in identifying individuals.</li></ul><p><strong><em>Image Resizing:</em></strong></p><ul><li>Facial images captured from different sources may vary in size and resolution, which can affect the efficiency and accuracy of the recognition process.</li><li>Resizing images to a standardized size ensures consistency across the dataset. This makes it easier for the recognition algorithm to compare facial features consistently across different images.</li><li>Additionally, resizing helps to reduce computational complexity by ensuring that all images are processed at a uniform size, improving the overall performance of the recognition system.</li></ul><p>This processed image is then sent to the face detection step.</p><h4>Face Detection</h4><ul><li><strong><em>Feature-Based Methods</em></strong><br>Algorithms such as the Viola-Jones or Haar cascades rely on predefined features like edges, lines, and gradients to identify potential facial regions in an image.</li><li><strong><em>Deep Learning-Based Methods</em></strong><br>Harnessing the power of Convolutional Neural Networks (CNNs), specifically trained for face detection, enables accurate localization of faces even amidst challenging conditions like diverse poses and lighting scenarios.</li><li><strong><em>Multi-Stage Approaches</em></strong><br>Some sophisticated algorithms deploy a multi-stage process, initially sieving out non-facial regions followed by meticulous analysis to pinpoint facial boundaries with precision.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*zsydMV3H23ql2TKVZZOJ2g.png" /><figcaption>Source: <a href="https://undraw.co/">Undraw</a></figcaption></figure><h4>Normalisation</h4><p>Having identified facial regions, normalization techniques step in to ensure uniformity and consistency in representation</p><ul><li><strong><em>Geometric Transformation:</em></strong><br>Leveraging affine or warp affine transformations rectifies variations in scale, rotation, and translation, aligning faces uniformly for subsequent processing.</li><li><strong><em>Alignment<br></em></strong>Sophisticated landmark detection algorithms meticulously pinpoint crucial facial landmarks such as eyes, nose tip, and mouth corners, facilitating geometric alignment of faces for standardized representation.</li></ul><h4>Feature Extraction</h4><p>The crux of face recognition lies in extracting salient features from normalized facial regions, enabling robust identification</p><ul><li><strong><em>Texture Analysis</em></strong><br>Employing methods like Local Binary Patterns (LBP), Gabor filters, or Haralick features disentangles intricate texture patterns from facial regions.</li><li><strong><em>Gradient-Based Features</em></strong><br>Techniques such as Histogram of Oriented Gradients (HOG) or Scale-Invariant Feature Transform (SIFT) adeptly capture spatial gradients of intensity variations, enriching feature representation.</li><li><strong><em>Deep Learning Features</em></strong><br>Armed with CNNs trained on vast face datasets like CelebA, FDDB, or WIDER FACE), automatic extraction of hierarchical facial features from images unfolds, empowering the system with rich, high-level representations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x802My-uYNiOB0m6K6jFbg.gif" /><figcaption>Source: <a href="https://www.nbcnews.com/tech/internet/facial-recognition-s-dirty-little-secret-millions-online-photos-scraped-n981921">NBC News</a></figcaption></figure><h4>Encoding</h4><p>Efficient encoding of extracted features into compact representations is pivotal for streamlined processing:</p><ul><li><strong><em>Dimensionality Reduction</em></strong><br>Employing techniques like Principal Component Analysis (PCA), Linear Discriminant Analysis (LDA), or t-Distributed Stochastic Neighbor Embedding (t-SNE) compresses feature vectors while preserving critical information.</li><li><strong><em>Hashing</em></strong><br>Leveraging algorithms like Locality-Sensitive Hashing (LSH) or random projection hashing translates reduced-dimensional feature vectors into concise binary or hash codes, optimising computational efficiency.</li></ul><p>The output of encoding in facial recognition is a condensed and standardized representation of the facial features, tailored to optimize storage and processing efficiency without compromising recognition accuracy.</p><h3>Diversity in Methodology</h3><p>Multiple approaches can be seen for the purpose of facial recognition. <br>Various algorithms are employed to standardize a set of facial images and subsequently condense the facial data into a single image format suitable for facial recognition purposes. This condensed data is then compared with the input image for identification purposes.</p><p>Another approach to facial recognition involves utilizing three-dimensional (3D) technology. Here, a specialized 3D sensor captures detailed information about facial contours, focusing on distinctive features like eye sockets, nose shape, and chin structure to facilitate recognition.</p><blockquote>A method known as <strong>skin texture</strong> analysis is also utilized in facial recognition. This technique involves analyzing visual skin details from standard digital or scanned images and translating unique skin patterns, lines, and spots into a mathematical representation.</blockquote><p>Facial recognition encompasses three primary tasks: document control, access control, and database retrieval. These tasks involve using facial recognition technology for verifying identity in various contexts, such as verifying documents, granting access to secure areas, and retrieving information from databases.</p><h3>Summary</h3><p>In wrapping up, let’s take a moment to appreciate how facial recognition and image processing have teamed up to redefine our digital landscape. It’s been quite the journey from those early days of basic features to the sophisticated systems we have today.</p><p>Think about it, every time you unlock your phone with your face or pass through automated security gates, you’re experiencing the magic of facial recognition. And behind the scenes, image processing is the unsung hero making it all happen seamlessly.</p><blockquote>Picture this, your selfie might be a bit blurry or have funky lighting, but thanks to noise reduction, color correction, and contrast enhancement, your phone still recognizes your face like a champ. And let’s not forget about geometric transformation — it’s the reason your face looks just as good at different angles.</blockquote><blockquote>Now, onto the interesting stuff — feature extraction. This is where the real magic happens. Algorithms dive deep into your facial features, picking out every little detail that makes you, well, you. From the curve of your smile to the twinkle in your eye, it’s all in there.</blockquote><blockquote>But wait, there’s more! Encoding takes all those juicy details and turns them into bite-sized bits for easy storage and retrieval. It’s like turning a blockbuster movie into a TikTok snippet — all the good stuff packed into a compact form.</blockquote><p>And there you have it — the dynamic duo of facial recognition and image processing, making our digital lives easier, safer, and a whole lot cooler. So next time you unlock your phone with a glance, take a moment to appreciate the tech wizardry happening behind the scenes. It’s a wild ride, and we’re just getting started!</p><h4>Authors</h4><p>Divija Godse<br>Atharva Kshirsagar<br>Vedant Bhosale<br>Bhushan Hatwar<br>Guide: Sonali Antad<br>(affiliated to Vishwakarma Institute of Technology, Pune)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v1FekMvAyO2UIbmESPAa2Q.jpeg" /></figure><h4>References</h4><ol><li><a href="https://www.researchgate.net/publication/259027363_Face_Recognition_Security_System">Owayjan, Michel &amp; Dergham, Amer &amp; Haber, Gerges &amp; Fakih, Nidal &amp; Hamoush, Ahmad &amp; Abdo, Elie. (2013). Face Recognition Security System, International Joint Conferences on Computer, Information, and Systems Sciences, and Engineering (CISSE 2013), December 2013.</a></li><li><a href="https://xailient.com/blog/what-are-the-different-face-recognition-categories-and-how-do-they-work/">Sabina Pokhrel, What are different Face Recognition Categories? How do they work?</a></li><li><a href="https://www.ericsson.com/en/blog/2021/5/facial-recognition-security-system">Yiyu Ren, Jing Hu, Anila Joshi, Facial recognition in security systems: How they work and what they could contribute to the security posture, May 05, 2021.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86866066533d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Message Digest Algorithm (MD5) and Secure Hash Algorithm (SHA)]]></title>
            <link>https://medium.com/@divijagodse/message-digest-algorithm-md5-and-secure-hash-algorithm-sha-70cde74fd883?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/70cde74fd883</guid>
            <category><![CDATA[hashing-algorithm]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Mon, 01 May 2023 15:16:48 GMT</pubDate>
            <atom:updated>2023-05-01T15:19:34.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbN8C4TjOpsuZhMiI_aGow.jpeg" /><figcaption>Source:<a href="https://pixabay.com/"> Pixabay</a></figcaption></figure><p>To begin with, what is hashing?</p><p>Hashing is the process of taking an input value — typically a password — and turning it into a “fingerprint” of a specific length. There is no way to reverse a hash back to its original value, unlike encryption, where the original message can be obtained.🔒</p><p>So, this hashing can be successfully employed in two ways, secure and insecure hashing.</p><h3><strong>Secure Hashing</strong></h3><p>A secure hashing algorithm is a cryptographic function that takes input data of any size and produces a fixed-size output known as a hash value or message digest. The primary purpose of a secure hashing algorithm is to ensure the integrity and authenticity of data by generating a unique and irreversible representation of it.</p><p>A secure hashing algorithm should meet certain criteria to ensure its effectiveness, including:</p><ul><li>Collision resistance: <br>It should be computationally infeasible to find two different input values that result in the same hash value.</li><li>Pre-image resistance:<br>To prevent attackers from finding the original input value that creates a particular hash value, the hash function must be pre-image resistant. This means that it should be difficult to find the input value by using the hash value as a starting point.</li><li>Second pre-image resistance: <br>This means that given one input value, it should be difficult to find another input value that generates the same hash value. This property ensures that an attacker cannot modify the input value and generate a hash that matches the original hash.</li><li>Deterministic: <br>The hash value should always be the same for a given input value.</li><li>Secure:<br>It should be resistant to various attacks, including brute-force attacks, birthday attacks, and length extension attacks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qx8vPHqgMlqDwGP8aRFO4A.png" /><figcaption>Source: <a href="https://undraw.co/search">undraw</a></figcaption></figure><h3>Insecure Hashing</h3><p>On the other hand, insecure hashing algorithms are the ones which are vulnerable to various types of attacks. Insecure hashing algorithms can also be used to compromise digital signatures and data integrity. MD5 and it all MD variants are insecure hashing algorithms. Recently as SHA is vulnerable to attacks, it can also be considered as insecure hashing algorithm.</p><p>Let us now see how MD5 works.</p><h3>Message Digest 5 (MD5)</h3><p>Message Digest 5 is a cryptographic hash function that produces a fixed-size output(128-bit hash value) from any input data. It was developed by Rivet Rivest in 1991.</p><p>So what exactly is MD5?</p><p>MD5 operates on message blocks of 512 bits, and applies a series of logical operations and modular arithmetic operations to each block to generate a 128-bit hash value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0bfZgUYCobQj8o9HLoWBHQ.jpeg" /><figcaption>Source: <a href="https://pixabay.com/illustrations/gdpr-data-protection-regulation-3178218/">Pixabay</a></figcaption></figure><p>Let us now take a brief look of the process involved.</p><p>MD5 is considered to be a relatively fast and efficient hash function, but it has been found to have some weakness in its security. In particular, it’s vulnerable to collision attacks, where two different input messages can produce the same hash value. As a result, MD5 is no longer recommended for cryptographic applications, and has been replaced by more secure hash functions.</p><ol><li>Padding:<br>The input message is padded with a 1-bit followed by 0-bits to make its length a multiple of 512 bits. The padding is done in such a way that the length of the padded message is 64 bits less than the next multiple of 512 bits.</li><li>Initialization:<br>The MD5 hash function initializes a 128-bit state variable, which is used to process each 512-bit block of the padded message. The state variable consists of four 32-bit words, A, B, C, and D.</li><li>Message Processing:<br> The padded message is divided into 512-bit blocks, and each block is processed using four rounds of operations. Each round consists of 16 operations that operate on a 32-bit word of the block and use the result of the previous operation to compute the next operation. <br>The operations in each round are as follows:<br><strong> Round 1: </strong>The first round mixes the input data in a simple way using modular addition, bitwise logical operations, and left rotations. The output of each operation is added to the corresponding word of the state variable.<br><strong>Round 2:</strong> The second round uses a more complex mixing function that involves modular addition, bitwise logical operations, and nonlinear functions of the form (B AND C)</li><li>Finalization: <br>After processing all the blocks of the padded message, the final hash value is computed by concatenating the four words of the state variable, A, B, C, and D, in little-endian order. The resulting 128-bit value is the MD5 hash of the input message.</li><li>State update:<br>After processing each block, the state of the hash function is updated using the processed block and the previous state.</li><li>Security considerations:<br>While MD5 is a widely used hash function, it is now considered to be insecure for cryptographic purposes due to vulnerabilities that have been discovered in its design. Specifically, researchers have shown that it is possible to generate two different inputs that produce the same MD5 hash value, which is known as a collision. As a result, MD5 is no longer recommended for cryptographic applications, and has been replaced by more secure hash functions such as SHA-256 and SHA-3.</li><li>Output:<br>After processing all message blocks, the final state value is transformed into a 128-bit hash value, which is the output of the MD5 hash function.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*KvRckSkR_jfLZSrbKdKvxw.png" /><figcaption>MD5 Working</figcaption></figure><p>In summary, MD5 is a hash function that takes an input message, pads it to a multiple of 512 bits, and processes it using a series of logical and arithmetic operations to produce a fixed-length 128-bit hash value. While MD5 has been widely used in the past, it is now considered to be insecure for cryptographic purposes, and should be replaced by more secure hash functions.</p><h4>Where is MD5 used?</h4><p>Although MD5 is no longer recommended algorithm for cryptography, it is still useful in some applications:</p><p><strong><em>Digital Forensics<br></em></strong>MD5 is commonly used in digital forensics to generate a hash value of digital evidence such as hard drives, memory dumps, and other storage media. These hash values can be used to verify the integrity of the evidence, detect tampering or changes, and identify duplicates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*3GKv_GTGcd7mCAnHMT9BfA.jpeg" /><figcaption>Source: <a href="https://www.istockphoto.com/en/vector/digital-identity-gm510722785-46960972?phrase=digital+forensics">iStock</a></figcaption></figure><p><strong><em>File Integrity Checking</em></strong><br>MD5 can be used to verify the integrity of files during transmission or storage. When a file is transmitted or stored, its hash value is generated using MD5, and the value is compared with the original hash value to ensure that the file has not been corrupted or modified.</p><p><strong><em>Password Verification</em></strong><br>MD5 can be used in password hashing to store and authenticate user passwords securely. When a user creates an account, their password is hashed using MD5 and stored in a database. When the user logs in, their password is hashed again using the same algorithm, and the resulting hash is compared with the stored hash. User is authenticated once the hashes match</p><p><strong><em>Non-Critical Security Applications</em></strong><br> MD5 can still be used in non-critical security applications where a high level of security is not required. For example, it can be used to generate checksums for software downloads or to encrypt messages where confidentiality is not a major concern.</p><h3>Secure Hashing Algorithm SHA</h3><p>Let us now briefly talk what SHA is and how exactly it works.</p><p>Secure Hashing Algorithm (SHA) is a cryptography hash function that is extensively used in security applications and is an industry standard. The generated output is a hash, which is of fixed size. This hash is generated from any given input data, which can be utilized to validate the integrity of the data or information. Hashing algorithm converts the data into a form that is unknown to modular additions, bitwise operations and compression functions. In this algorithm, even a single altered character can generate a completely distinct hash.</p><p>What are the types ?</p><p>There are two main forms of SHA, namely SHA-1 and SHA-2. You’ve probably heard about SHA-256 which is in actuality a version of SHA-2.</p><h4>SHA-1</h4><p>This was the initial algorithm, which returned a 160 bit hash digest after the process of hashing. In today’s world, 160 bit is a very short length of digest, hence it can be easily cracked by brute force methods. SHA-1 can assign the same hash digest to two distinct values since the amount of combinations that can be generated by 160 bits is very limited However, some variants of SHA, particularly SHA-1, have been found to be vulnerable to certain types of attacks and are no longer recommended for use in new applications.. Some of these limitations led to the rise of SHA-2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*i-ppztfXoveVaHMHa8t-lw.png" /></figure><h4>SHA-2</h4><p>SHA-2 can generate a large combination of bit-lengths spanning from 256 to 512. This extensive span of bit lengths allow it to generate unique values to each hash digest which makes it collision-resistant. 4.3*10–60 is the approximate probability of two hashes coincidentally colliding. So, it’s safe to say that generic brute force attacks can take years to crack the digest. SHA is also designed to be resistant to preimage attack wherein an attacker can crack the original input from the hash and second-preimage attack where the attacker can find a matching input to a given input that then yields the same hash.</p><p>The steps involved in SHA algorithm are:</p><ul><li>Padding:<br>The input message is padded to ensure that its length is a multiple of the block size, which varies depending on the SHA variant. The padding is designed to be unambiguous and prevent tampering with the message.</li><li>Initialization:<br>The initial hash value, also known as the chaining variable, is set to a predefined constant, which varies depending on the SHA variant.</li><li>Message Processing<br>The message is processed in blocks, each of which undergoes several rounds of operations involving bitwise logical operations, modular arithmetic, and substitution. The exact number of rounds and operations vary depending on the SHA variant.</li><li>Output:<br>Once all the blocks have been processed, the final hash value is generated by concatenating the values of the chaining variables for each block, in the order they were processed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*5UDdQZ_oPzShNvZGtYdxXw.png" /><figcaption>SHA Working</figcaption></figure><p>Earlier we have spoken about the applications of MD5, now it is time to talk about the applications of SHA.</p><h4>So, where is SHA used?</h4><p><strong><em>Password Hashing</em></strong><br>SHA is used to store and authenticate user passwords securely. When a user creates an account, their password is hashed using SHA and stored in a database. When the user logs in, their password is hashed again using the same algorithm, and the resulting hash is compared with the stored hash. If the hashes match, the user is authenticated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*Dhgkl0wf2IYF9uI-yr-TJg.png" /><figcaption>Source: <a href="https://undraw.co/search">undraw</a></figcaption></figure><p><strong><em>Digital signatures</em></strong><br>SHA ensures the integrity and authenticity of electronic documents and messages. When a document or message is digitally signed, a hash of the data is generated using SHA, which is then encrypted using the sender’s private key. The recipient can then use the sender’s public key to decrypt the hash and verify the integrity of the message.</p><p><strong><em>Blockchain mining</em></strong><br>Blockchain mining utilizes SHA in the mining process of many blockchain-based cryptocurrencies, such as Bitcoin. In order to add a new block to the blockchain, miners must solve a cryptographic puzzle that involves finding a hash that meets certain criteria. This hash is generated using SHA, and its difficulty is adjusted to maintain a constant rate of block creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*GnfYiITc1WZFusbPJ6E1fQ.jpeg" /><figcaption>Source: <a href="https://pixabay.com/illustrations/bitcoin-btc-eth-crypto-mining-dig-2714196/">Pixabay</a></figcaption></figure><p><strong><em>SSL/TLS certificates</em></strong><br>SHA algorithm is also used in SSL/TLS certificates to authenticate the identity of websites and ensure secure communication between clients and servers. When a website obtains an SSL/TLS certificate, its digital signature is generated using SHA, which is then used to verify the identity of the website and encrypt the data transmitted between the client and server.</p><p>After knowing all these applications, it becomes crystal clear that both MD5 and SHA algorithms are widely used cryptographic hash functions in the field of cybersecurity.</p><blockquote>Although both algorithms generate a fixed-size message digest from input data of arbitrary size, <strong>SHA is considered to be more secure than MD5 , </strong>due to known vulnerabilities in the latter.</blockquote><blockquote>SHA is currently recommended for secure cryptographic applications, while MD5 is typically used in non-security-critical contexts such as digital forensics and file integrity checking.</blockquote><p>It is important to understand that the security of cryptographic algorithms is not absolute, and they can be compromised with the discovery of new vulnerabilities. Therefore, it is recommended to stay up-to-date with the latest advancements in cryptographic algorithms and to use the most secure ones available. Additionally, using a combination of cryptographic techniques, such as hashing, encryption, and digital signatures, can help enhance the overall security of digital data and ensure that it is not tampered with or compromised in any way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*tewZj8uUrfkwqagaxvbFrQ.jpeg" /><figcaption>Source: <a href="https://undraw.co/search">undraw</a></figcaption></figure><p>Thus, we can now, MD5 and SHA algorithms have their own unique strengths and weaknesses, they are both valuable tools in the field of cybersecurity and are essential for ensuring the integrity and confidentiality of digital data.</p><h4>References</h4><ol><li><a href="https://dl.acm.org/doi/pdf/10.1145/217391.217414">Joseph D. Touch. 1995. Performance analysis of MD5. SIGCOMM Comput. Commun. Rev. 25, 77–8, Oct 1995.</a></li><li><a href="https://core.ac.uk/download/pdf/301661285.pdf">Stevens, Marc. “On collisions for MD5.” 2007.</a></li><li><a href="https://learn.snyk.io/lessons/insecure-hash/javascript/">Insecure hash: Using strong hashes to store passwords, 2023</a></li><li><a href="https://www.encryptionconsulting.com/education-center/what-is-sha/#:~:text=SHA%20stands%20for%20secure%20hashing,modular%20additions%2C%20and%20compression%20functions.">What is SHA? What is SHA used for?</a></li><li><a href="https://link.springer.com/chapter/10.1007/978-3-540-24654-1_13">Henri Gilbert, Helena Handschuh, Security Analysis of SHA-256 and Sisters, Selected Areas in Cryptography, Volume 3006, 2004.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70cde74fd883" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Future of AI]]></title>
            <link>https://medium.com/@divijagodse/future-of-ai-427e55a6a916?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/427e55a6a916</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Fri, 28 Apr 2023 16:05:38 GMT</pubDate>
            <atom:updated>2023-05-02T03:20:42.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEVbq1xru7MBZhi06vyDSQ.jpeg" /><figcaption>Source: <a href="https://pixabay.com/illustrations/technology-sci-fi-futuristic-7111801/">Pixabay</a></figcaption></figure><p>Have you ever heard of ChatGPT? Well it answers all your questions and makes your life simpler, isn’t it? It is an AI model trained to answer various questions within a few seconds time. This has ensured an increase in ease and thus standard of living.</p><p>The world is now expecting the fourth industrial revolution, in terms of Artificial Intelligence. Artificial intelligence is prepared to take the lead in a number of developing technologies, including big data, robots, and the Internet of Things. Artificial Intelligence (AI) has come a long way since its inception in the 1950s, and today it is transforming many industries and shaping our daily lives in countless ways. The real question that rises is the future which Artificial Intelligence holds.</p><p>Before jumping to its future, let us first understand what Artificial Intelligence is in a brief manner.</p><h3>What is Artificial Intelligence?</h3><p>Stuart Russell and Peter Norving have introduced Artificial Intelligence in their book, ‘Artificial Intelligence: A Modern Approach.’ as,</p><blockquote>“We have claimed that AI is interesting, but we have not said what it is.”</blockquote><p>Artificial Intelligence refers to the development of computer systems that can perform tasks that would typically require human intelligence to accomplish. AI systems are designed to learn from experience, adapting and improving over time based on the data they are fed. However, to put it in very simple words <strong><em>Artificial Intelligence is machine demonstrated intelligence.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61KvCW1jFQ3mo5Pj3CQQJw.png" /><figcaption>Source: Undraw</figcaption></figure><p>Before talking about the future of AI, we must talk about the stages of AI to better understand its scope.</p><p>There are various levels of artificial intelligences,</p><h4>Narrow AI</h4><p>This stage is known as the <strong>Weak AI</strong>. These are designed to perform a specific task or set of tasks. The systems are typically trained on large datasets and use machine learning algorithms to recognize patterns and make decisions based on that data they are fed. <strong><em>Currently, Weak AI is in use.</em></strong></p><h4>General AI</h4><p>This stage is also known as <strong>Strong AI</strong>. These systems are designed to perform anny intellectual task that a human can. It is capable of learning and adapting to new situations, solving problems, and making decisions independently. Talking about the current scenario, we are a long way from achieving this level of AI development.</p><h4>Super AI</h4><p>This stage is also known as <strong>Artificial SuperIntelligence </strong>(ASI). Not only can these systems can perform any intellectual task that a human can perform, but are also capable of surpassing human intelligence in every area. This ASI is often depicted in sci-fi movies as a powerful, know-it-all AI system that poses a threat to humanity! 😜</p><p>Currently, super AI is only a theoretical concept, however some experts believe that it could be developed in the future.</p><p>From the above discussions it is clear that AI will rapidly keep getting better and soon General AI would be attained. The future of AI is likely to be shaped by the key trends, challenges and opportunities in the coming years.</p><blockquote>According to a report by Grand View Research, the global AI market size is expected to reach $733.7 billion by 2030, growing at a Compound annual growth rate of 42.2% from 2020 to 2030.</blockquote><p>Furthermore, rather than replacing human workers, AI will increasingly work alongside them, augmenting their abilities and helping them to be more productive and effective.</p><p>Along with that AI will enable more personalized experiences in many areas, such as healthcare, education, and entertainment, by using data to better understand and anticipate individual needs and preferences.</p><p>This gives us an opportunity to look into various domains for expansion of AI:</p><h4>Healthcare</h4><p>AI has the potential to revolutionize healthcare in many ways. One of the most significant is through the use of predictive analytics, which can help identify patients who are at high risk for certain diseases or conditions. By analyzing large amounts of data, AI algorithms can detect patterns and correlations that would be difficult or impossible for humans to identify, and use this information to make more accurate predictions about health outcomes. Additionally, AI-powered medical imaging systems can help doctors to detect and diagnose diseases more quickly and accurately, leading to better patient outcomes.</p><h4>Education</h4><p>AI can also enhance education in numerous ways. One of the most promising applications of AI in education is in the area of personalized learning. By using data on student performance and learning styles, AI algorithms can generate personalized learning experienced tailored to each student’s individual needs and preferences. Moreover, , AI-powered tutoring systems can provide students with immediate feedback and support, making the learning process more efficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31uP9aRMdNs9DI6MBCOk5A.png" /><figcaption>Source: <a href="https://www.geeksforgeeks.org/6-ways-artificial-intelligence-will-change-education-in-the-2020s/">GeeksForGeeks</a></figcaption></figure><h4>Sustainability</h4><p>AI has the potential to play a major role in addressing many of the environmental challenges that we face. For an instance, AI can be used to optimize energy usage in buildings and transportation systems, reducing waste and improving energy efficiency. In addition to this, AI can help to predict and mitigate natural disasters, such as floods and wildfires, by analyzing weather patterns and other relevant data.</p><h4>Creativity</h4><p>AI can also augment human creativity in many ways. One of the most interesting applications of AI is in this area of music and arts. AI algorithms can be trained on large datasets of existing music or art, and then generate new works that are original and unique. Besides, AI can help to enhance storytelling by creating more engaging and immersive experiences, such immersive narratives and virtual reality experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*EiMnQLKkSP6j53NrtPXO_A.jpeg" /><figcaption>Source: <a href="https://www.dailystar.co.uk/tech/news/music-can-now-made-artificial-29095942">DNA (Daily Star)</a></figcaption></figure><h4>Business</h4><p>AI can also provide numerous opportunities for businesses to improve their operations and increase efficiency. For example, AI powered chatbots can provide customers with immediate support and assistance, reducing the need for human customer service representatives. AI can also be used to optimize supply chain operations, predicting demand and automating logistics processes.AI can also provide numerous opportunities for businesses to improve their operations and increase efficiency. For example, AI powered chatbots can provide customers with immediate support and assistance, reducing the need for human customer service representatives. AI can also be used to optimize supply chain operations, predicting demand and automating logistics processes.</p><p>Along with these domains, AI also has a large scope in various other domains like cybersecurity, e-commerce, transportation and many others. To elaborate this, we can understand that with AI tools, security will be monitored, identification of cyber attack origin using NLP. AI and machine learning are being applied in the cockpit to help reduce workload, handle pilot stress and fatigue, and improve on-time performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*pN-yHzSek6P-D7d9mmUlwA.jpeg" /><figcaption>Source: Pixabay</figcaption></figure><h4>FUN FACT✨</h4><blockquote>Recently, a Bengaluru based software engineer, Sukuru Sai Vineet, developed ‘<strong>Gita GPT’</strong> in an effort to gain as much traction as the popularity of ChatGPT. The AI chatbot is completely inspired by the Bhagavad Gita and will answer all your questions based on the Hindu scripture. It allows its users to “consult the Gita” when it comes to solving their life’s issues.</blockquote><p>In contrast to all these advancements, AI can also be used to achieve malicious intentions. In this way, AI can also be risky. Some AI weapons can be developed and trained to kill. The digital arms race can furthermore lead to an AI war. One more point to be considered is the misalignment of goal and machines. There could be a possibility where we have developed an AI system which would prove to be beneficial, however the results turn out be disastrous.</p><p>For an instance, if we make a super car and program it to reach the destination at a fast speed, then the machine will follow it blindly without any conscience. It can only be beneficial if it is also programmed to follow the traffic rules.</p><p>Overall, the opportunities presented by AI are vast and diverse. However a few challenges and myths about AI should be well taken into consideration.</p><p>AI systems are only as unbiased as the data they are trained on, and if that data is biased, the AI system will also be biased. Ensuring fairness and equity in AI systems will be a major challenge in the coming years. As AI becomes more ubiquitous, it will increasingly collect and process sensitive data, raising concerns about privacy and security. Along with this, the use of AI raises ethical and social concerns that need to addressed, from job displacement to algorithmic bias.</p><p>Artificial intelligence will bring rapid immense improvements in technology and businesses. However, the reality about the possibility of superintelligence is that currently, we can’t determine it. It may occur in decades, or centuries, or may never, but nothing is confirmed. There have been several surveys in which AI researchers have been asked how many years from now they think we will have human-scale AI with at least a 50% chance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*0IqI7wPcXFh05M_Me2NHFg.jpeg" /><figcaption>Source:Pixabay</figcaption></figure><p>Thus, we can conclude that future of AI is both exciting and challenging. While AI has the potential to transform many industries and improve our lives in countless ways, it also raises ethical, social, and technical concerns that need to be addressed. By embracing the trends and opportunities while addressing the challenges, we can ensure that AI continues to benefit society and advance human progress.</p><h4>References</h4><ol><li><a href="https://link.springer.com/article/10.1007/s00146-016-0685-0">Bundy, A “Preparing for the future of Artificial Intelligence.,” AI &amp; Soc 32, 285–287 (2017).</a></li><li><a href="https://books.google.com/books?hl=en&amp;lr=&amp;id=yDQTDAAAQBAJ&amp;oi=fnd&amp;pg=PP1&amp;dq=Boden,+Margaret+A,+%22AI:+Its+nature+and+future,%22+Oxford+University+Press,+2016.&amp;ots=T1lj5D17H6&amp;sig=PFUduXhhfi3BqFyknZtgihF-6rQ">Boden, Margaret A, “AI: Its nature and future,” Oxford University Press, 2016.</a></li><li><a href="https://books.google.com/books?id=XS9CjwEACAAJ&amp;dq=russell+norvig+artificial+intelligence+a+modern+approach&amp;hl=en&amp;newbks=1&amp;newbks_redir=1&amp;sa=X&amp;ved=2ahUKEwik74Gp98z-AhUq-WEKHQ06CdEQ6AF6BAgDEAI">S.Russell, and P.Norvig, “Artificial Intelligence: A Modern Approach”, 2016.</a></li><li><a href="https://www.grandviewresearch.com/industry-analysis/artificial-intelligence-ai-market">Grand View Research, Market Analysis Report, 2020.</a></li><li><a href="https://www.dnaindia.com/explainer/report-dna-explainer-what-is-new-ai-chatbot-gita-gpt-spreading-bhagavad-gita-ka-gyaan-know-how-it-works-3022937#:~:text=Gita%20GPT%2C%20similar%20to%20ChatGPT,inspired%20by%20the%20Hindu%20scripture.">DNA Explainer, DNA Web Desk, February 2023.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=427e55a6a916" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Economics]]></title>
            <link>https://medium.com/@divijagodse/cloud-economics-394ff840185c?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/394ff840185c</guid>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 08:11:59 GMT</pubDate>
            <atom:updated>2023-03-06T08:12:34.948Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NSkO0OSYDkSagO3bGhz-0w.png" /></figure><p>Stockarea is one of the most successful end-to-end logistics company in India. Stockarea provides end-to-end Logistics Solutions for your business. Whether you are a Manufacturer or Distributor, Importer or Exporter, Retailer or Wholesaler, Stockarea has got you covered. With more than 500+ Warehouses and Distribution Centres, they provide logistics services pan-India. Stockarea is trying to solve this fragmented Industry with the aid of Modern Technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*jcnNEoIAdBsw79FN-gvjHg.png" /></figure><p>They are on a mission to bring on-demand warehousing culture in India and digitise the Supply Chain from start to end. One can just assume the total cost required by the company to manage storage, movement of goods.</p><p>Similarly in the virtual and computarized world, Cloud acts in a similar way. StockArea can be used as an analogy to Cloud. Cloud, remotely, provides various services to different businesses.Thus there ensures a certain cost for setting up, operations and maintenance of the data centers across the world.</p><p>Before understanding Cloud Economics, one should be aware of what is cloud and cloud computing. Here is a video giving a brief overview of the same.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM988_fsOSWo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM988_fsOSWo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM988_fsOSWo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4c1bb716b70206abef20c3cf8bd647d/href">https://medium.com/media/b4c1bb716b70206abef20c3cf8bd647d/href</a></iframe><h3>What is Cloud Economics?</h3><p>Cloud economics in itself is a very wide concept. Cloud economics is not just about costs in actual monetary terms, but also about the opportunity costs of the cloud and the peculiarities of managing costs in a highly dynamic environment.</p><blockquote>Cloud economics is the study of the economic benefits and costs of cloud computing.</blockquote><p>It helps businesses understand the financial implications of their cloud deployments, including the costs associated with deploying, managing, and optimizing cloud resources, as well as the benefits of increased agility, scalability, and availability.</p><blockquote>The very common definition of cloud economics is the study of cloud computing’s costs and benefits and the economic principles that underpin them.</blockquote><p>Let us talk briefly about some important concepts that shape cloud economics. The total cost of ownership (TCO) of cloud computing, the benefits of the cloud over on-premises models, and cost optimization strategies that will maximize ROI on your cloud investment.</p><h4>Total Cost of Ownership</h4><p>TCO refers to the total cost of owning and operating a cloud-based system or service, including the cost of hardware, software, licensing, maintenance, and support. It becomes extremely helpful for understanding your Return on Investment (ROI).</p><p>Completing TCO analysis can be difficult, because the cloud environment is intrinsically more complicated and dynamic than on-premises infrastructures. By calculating TCO, businesses can identify the total cost of their cloud deployment over time and make informed decisions about resource allocation and budgeting. The overall objective is to reduce TCO in comparison to on-premises infrastructure, although it is also possible to justify a higher TCO by citing the cloud’s intangible advantages, such as agility and faster time to market.</p><h4>CAPEX and OPEX</h4><p>The price mechanism for cloud computing differs from that of traditional computing, which has an impact on how firms allocate costs. A significant distinction is the shift from capital expenditures (CAPEX) to operational expenditures (OPEX), which has an impact on how firms assess cloud profitability.</p><p>CAPEX refers to the capital investment required to acquire and deploy cloud resources, such as virtual machines, storage, and networking and OPEX refers to the ongoing operational expenses required to operate and maintain cloud resources, such as the cost of bandwidth, data storage, and licensing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*WwshT_PmT6mQfpHD-roC8g.png" /><figcaption>Ref: <a href="https://www.integrify.com/capex-vs-opex/">Inetgrify</a></figcaption></figure><p>Computing costs are predictable and largely fixed in conventional IT setups. A company purchases the upfront processing power it requires and gradually uses it. In this scenario, figuring out the total cost of ownership is quite simple. Cloud service providers, in contrast, use a <strong>pay-as-you-go</strong> business model, and the majority of their services don’t require any upfront payments. Thus there is a visible shift from Capex to Opex.</p><h4>Pricing Strategies</h4><p>There are three different <strong>Pricing Strategies</strong> that are introduced by Cloud Computing: Tiered Pricing, Per-unit Pricing, and Subscription-based Pricing.</p><ul><li><strong>Tiered Pricing</strong>: Cloud Services are offered in various tiers. Each tier offers to fix agreements at a specific cost. Amazon EC2 uses this kind of pricing.</li><li><strong>Per-unit pricin</strong>g: The model is based upon the unit specific service concept. Data transfer and memory allocation are included in this model for specific units. GoGrid uses this kind of pricing in terms of RAM/hour.</li><li><strong>Subscription-based pricing</strong>: In this model, users are paying periodic subscription fees for the usage of the software.</li></ul><h3>Benefits of Cloud Economics</h3><p>There are several benefits to adopting a cloud economics approach when making decisions about cloud deployments:</p><ul><li><strong>Cost Optimization</strong>: Cloud economics can help businesses optimize their cloud costs by providing insights into the most cost-effective cloud resources and services. This can help businesses reduce their cloud spending without compromising performance or functionality.</li><li><strong>Agility</strong>: Cloud economics can help businesses become more agile by providing them with the flexibility to quickly scale their cloud resources up or down in response to changing business needs. This can help businesses respond more quickly to market changes and stay ahead of the competition.</li><li><strong>Improved Performance</strong>: Cloud economics can help businesses improve their cloud performance by providing insights into the most efficient and effective ways to use cloud resources. This can help businesses deliver faster, more responsive services to their customers.</li><li><strong>Increased Innovation</strong>: Cloud economics can help businesses increase their innovation by providing them with access to a wide range of cloud resources and services. This can help businesses experiment with new technologies and services without the need for significant upfront investment.</li></ul><h3>Costs of Cloud Economics</h3><p>Due to the optimizations in the cloud economy, along with the benefits there are a certain extra costs which the businesses need to bear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*2rYiUsX-xDUhH4hU4yGjtQ.png" /><figcaption>Ref: <a href="https://www.istockphoto.com/illustrations/hidden-costs">istock</a></figcaption></figure><ul><li><strong>Complexity</strong>: Businesses must take into account a wide range of issues, including cloud service providers, pricing structures, and resource usage patterns, when dealing with cloud economics, which can be complicated. Businesses may find it challenging to make educated judgements regarding their cloud installations as a result.</li><li><strong>Skillset</strong>: Cloud Economics requires a specialized knowledge and skills to properly assess the financial implications of cloud deployments. Thus, businesses may need to invest in training or hire additional staff for the same.</li><li><strong>Integration</strong>: Organizations may need to spend time and resources integrating their cloud economics projects with their current operational and financial systems.</li><li><strong>Security and compliance</strong>: While deploying cloud services, firms must carefully evaluate security and compliance challenges due to cloud economics. In order to guarantee that cloud resources are safe and compliant with applicable laws, this may necessitate additional expenditure in security and compliance procedures.</li></ul><p>Cloud economics is a critical component of any cloud deployment strategy. Each cloud deployment strategy must take cloud economics into account. Businesses can allocate resources efficiently, create budgets, and improve performance by being aware of the financial effects of their cloud deployments. To manage their cloud economics projects effectively, companies must have the right skills, resources, and infrastructure in place. They must also carefully weigh the costs and complexities of cloud economics. Businesses may fully utilize cloud computing and accomplish their goals in a cost-effective and efficient way with the correct strategy and investment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*UsUM9mmh6reI4TVaYOFuHg.png" /></figure><h4>References</h4><ol><li><a href="https://www.cloudzero.com/blog/cloud-economics">‘What is Cloud Economics? And an Intro Guide to Measuring Costs,’ CloudZero.</a></li><li><a href="https://www.geeksforgeeks.org/economics-of-cloud-computing/">Atharva D, ‘Economics of Cloud Computing,’ GeeksforGeeks.</a></li><li><a href="https://www.nops.io/what-is-cloud-economics-and-why-is-it-important/">‘What is Cloud Economics and why is it important,’ nOps.</a></li><li><a href="https://www.locuz.com/blog-details/Cloud-Economics-Everything-you-need-to-know">Mounika Raghavarapu, ‘Cloud Economics: Everything you need to know,’ May 2021, Locuz.</a></li><li><a href="https://www.locuz.com/blog-details/What-Are-The-Economic-Benefits-Of-The-Cloud">Mounika Raghavarapu, ‘What are Economic Benefits of Cloud?,’ December 2021, Locuz.</a></li><li><a href="https://cloudensure.io/what-is-cloud-economics-and-why-is-it-important/">Ronak Vachher, ‘What is Cloud Economics and why is it important?,’ July 2022, CloudEnsure.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=394ff840185c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Internet Logical Addressing]]></title>
            <link>https://medium.com/@divijagodse/internet-logical-addressing-f9d76024245d?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9d76024245d</guid>
            <category><![CDATA[computer-network]]></category>
            <category><![CDATA[network-layer]]></category>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[logical-addressing]]></category>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Fri, 25 Nov 2022 18:32:16 GMT</pubDate>
            <atom:updated>2022-11-25T18:32:16.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*fkAaNlvMq7NUHXy3G6mklg.jpeg" /></figure><p>Let’s first see a small instance. Now let us say a fruit seller has multiple types of fruits and dozens of such fruits. Now to him, all the fruits are arranged in a certain manner, where he can locate each fruit from his position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*Kk8neUqgEpC2C226" /></figure><p>In a similar fashion, a logical address is the location that anything (such as a memory cell, storage element, or network host) seems to be located when viewed from the perspective of an application program that is running. Due to the use of an address translator or mapping function, the logical address and the physical address may differ.</p><p><a href="https://en.wikipedia.org/wiki/Network_layer"><strong>Network layer</strong></a><strong> implements the logical addressing</strong>. Network addressing is the one of the major responsibilities of the network layer. Network addresses are always logical.</p><p>Logical addressing is also used to distinguish between source and destination system. It addresses of the sender and the recipient are added as a header to the packet by the network layer.</p><p>IP address is the logical address that is assigned by software residing in the server or the router . This IP address can change from time to time, when certain specificities are modified. IP address is 32-bit long and divided into sub-classes.</p><h3>Classful Addressing</h3><p>There exists basic 5 classes of logical addressing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*V-HkFBlfCC5EQBLZ7Hfzzw.png" /><figcaption>Classful Addressing</figcaption></figure><p>Here, the Network ID (NET ID) represents the number of networks and the Host ID represents the number of hosts.</p><p>Now let us see some description of the 5 given classes on a certain aspects. The number of networks and number of hosts for each network differs for every class. Similarly, the higher bits and the Host and network IDs also vary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*if_GGomzGIlHo3VeaJwEYw.jpeg" /></figure><h3>Function of Logical Addressing</h3><p>Depending on the needs, there could be a number of websites, each of which might connect to a separate network or networks. The networks will have hosts connected to them, and each of these hosts has a Network Interface Card (NIC) attached to it. These physical addresses are known as the MAC addresses since they are burned into the NICs. The physical addresses employed by the second layer are used to deliver data frames from one host to another host on the same network. Logical addresses are assigned to the third tier by <strong>Dynamic Host Configuration Protocol (DHCP)</strong>, and they make up the third layer. The host of one network will communicate with the hosts of other networks using the third layer addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*r-n3E3PhoofILQxyYDOKiw.png" /></figure><p>When a host on one network tries to interact with a host on another, it looks up the destination host’s third layer address and compares it to its own third layer address. The host will attempt to locate the second layer address of the destination network and transfer the data frame directly to the second layer of the destination host if it is determined that the addresses are on the same network. A gateway is configured to transfer the data frame to the second layer of the destination host in a different network if the destination host is discovered to be on a different network.</p><p>Using the third layer address, the gateway locates a path destination host on another network, and this gateway then forwards the packet to the destination network. The physical addresses are lost when the data frames are transferred between networks. The physical addresses are stored in the frame headers, and the logical address is used to remove the physical address and delete it, <strong>freeing up space for logical addresses to send the data frames to the destination network.</strong></p><p>Thus the Logical Addressing works as a smooth mapping between the two network layers. The entire TCP/IP model in itself is quite simple but complex at the same time. Understanding the models and protocols would take a brief study into the computer networks.</p><h4>Group Contributions</h4><p>This article has been co-authored by <a href="https://medium.com/@atharva.mugalikar20">Atharva Mugalikar</a>, <a href="https://medium.com/@aryan.mamidwar20">Aryan Mamidwar</a>, and <a href="https://medium.com/@vivek.ghuge20">Vivek Ghuge</a>.</p><h4>References:</h4><p><a href="https://www.javatpoint.com/network-addressing">Network Addressing</a><br><a href="https://www.educba.com/logical-address/">Features and Models of Logical Address</a><br><a href="https://www.geeksforgeeks.org/why-is-the-ip-address-called-a-logical-address-and-the-mac-address-is-called-a-physical-address/">IP Addressing</a><br><a href="https://d1wqtxts1xzle7.cloudfront.net/28319460/CB23474480-with-cover-page-v2.pdf?Expires=1669404346&amp;Signature=eLM~L0VuchCaaLBljU7tThSrejjORWiHGfsGWNyo16KxAbR-Hc9m1HqnaoNZh~HJXLhzoQI8~2JSyZ3JbQgMn-fMjDoskZpKcmI2PIyyyCMOejPh66L2yEGWJAR3kDjlA2QjwnntejMJp9P62YDgpaZDi~ePVoK~ARzDb05851ZtPaNKl-hGeH1l245lPxq-aT2EZxETX2oTxbbW4YdZx2fUzhSC08W3Gy1Hkg0zfCWI3OCvPmBTf28f7FZL7ZfhGLxFM9~euEouxxnqyxpsbIv4Nuf1NfuQf6jOcpdF8MUlV0SWigPbb7yYz43aLKYeNLC6QlweH1WHoN2rC3auwQ__&amp;Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA">MAC and Logical Addressing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9d76024245d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prim’s Algorithm VS Kruskal’s Algorithm]]></title>
            <link>https://medium.com/@divijagodse/prims-algorithm-vs-kruskal-s-algorithm-5ee22240468b?source=rss-8e253f86bc93------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ee22240468b</guid>
            <dc:creator><![CDATA[Divija Godse]]></dc:creator>
            <pubDate>Mon, 30 May 2022 16:23:17 GMT</pubDate>
            <atom:updated>2022-06-28T08:03:48.782Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UDLaGf464IIyCutr-4UXwA.jpeg" /><figcaption>Img by <a href="https://threatpost.com/decryptor-keys-maze-egregor-sekhmet-ransomwares/178363/">Threatpost</a></figcaption></figure><p>It is human nature of finding the quickest solution to all the problems. This has led to numerous inventions and techniques. As the world says, “<em>Work Smart, not hard!</em>”</p><p>Now, let us talk about the cable connectivity issue. A cable television firm wants to construct wires to connect its stations. They want to link all of these communities together using the shortest possible cable network of cable. According to the map depicted below, the cable connectivity is delusionally simple. This simplicity is the result of the minimum spanning tree algorithm — Kruskal’s Algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*4X4ixJ8VsYNIwL8xZRpD1Q.png" /><figcaption>Image by <a href="https://www.nuffieldfoundation.org/sites/default/files/files/FSMA%20Cable%20TV%20student.pdf">Nuffield Foundation</a></figcaption></figure><p>Now let us get started with the two main algorithms of our interest. Prim’s and Kruskal’s both fall under the category of greedy algorithms.</p><blockquote>The main purpose of these algorithms is quite simple, to find a minimum spanning tree for the given graph input.</blockquote><p>A basic introduction to greedy algorithms has been provided in the video below in order to brush up on our concepts of greedy algorithms.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHzeK7g8cD0Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHzeK7g8cD0Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHzeK7g8cD0Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/59ae8567a534a4abf73f0be618da06a5/href">https://medium.com/media/59ae8567a534a4abf73f0be618da06a5/href</a></iframe><h3><strong>Prim’s Algorithm</strong></h3><p>A greedy algorithm used to find a minimum spanning tree from a graph is Prim’s algorithm. First, let’s take a look at a simple example mentioned below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*uDolLeNGaIxSvmjD" /></figure><p>Step 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/0*iWi58RmoK0IzJNbz" /></figure><p>Step 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/0*bW72eEU2Eouye3t_" /></figure><p>Step 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*4goFUEAMJY-UPDW7" /></figure><p>Step 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/0*mUcoiZAA0dtdgNAP" /></figure><p>Step 5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/0*EQCJR3DAMxtvq2gF" /></figure><p>Step 6:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/0*WkHRmmxZ-WhjbNbA" /></figure><p>The summation of weight for the given example would be as</p><p>10+25+22+12+16+14= 99</p><p>Thus, the minimum the graph can traverse is a weight of 99.</p><p>In the above example, a graph with 7 vertices is considered as the input. Then we start with any vertex of our choice, here 1. Then we connect this to the next node where the edge between the two nodes weighs less. In a similar manner, we go on connecting the next nodes till we come to a point where if we connect the next node, a loop would be formed. However, the main aim of Prim’s Algorithm is a minimum spanning <strong>tree</strong>. The formation of a loop would contradict the motive of forming a tree. Hence, we stop at this node. A summation of all the weights now considered will give you the minimum traversal weight for the graph. One more thing about Prim’s Algorithm is that the <strong>tree is connected at any given point of time. No discontinuity is visible even in the intermediate stages.</strong></p><p>Now let’s talk about the time complexity of Prim’s Algorithm. Let us assume V as vertices and E as edges. To complete one iteration, we delete the min node from Min-Heap and add some no. of edge weights to Min-Heap.</p><ul><li>In total we delete V nodes from Min-Heap since we have V nodes in the graph and in every iteration 1 edge and in total V-1 edges in MST are deleted and each deletion takes the complexity of <strong>O(log(V))</strong>. And we add atmost E edges altogether where each adding takes the complexity of O(log(V)).</li><li>When an adjacency List is used, traversing takes place via breadth-first search. Vertices can be traversed in <strong>o(V+E)</strong> time. Min heap is used for the storage of vertices.</li><li>Min heap operations like extracting a minimum element and decreasing key values take <strong>o(logv)</strong> time.</li><li>For Worst Case: <br>1. o(Elogv) using a binary heap<br>2. o(E+ Vlogv) using fibonacci heap</li><li><strong>Overall time complexity:</strong><br>=o(E+V) ✕ o(logV)<br>=o((E+V)logV)<br>=<strong>o(ElogV)</strong></li><li>The best case time complexity of Prim’s is when the given graph is a tree itself and each node has a minimum number of adjacent nodes.</li></ul><p>Now let us see some real-life applications of Prim’s Algorithm.</p><blockquote>LAN Topology Design uses Prim’s Algorithm.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*srEJeSIYf2dkd6989dFE5A.png" /></figure><p>Internal computer network design is a difficult endeavor. In order to produce an optimal design, one must consider the constraints of location and installation cost. The computers are usually scattered throughout the facility, in rooms separated by walls. In this case, a particular length of cable is required to sustain the computer connection, resulting in an increase in installation costs. To reduce this cost, we must create an architecture that connects each machine on the network in the most efficient manner possible. This problem is categorized as a minimum spanning tree problem. Prim’s algorithm will attempt to connect each graph node in the shortest path possible, starting with the ones that have the smallest edge value. Starting with the initial node, this algorithm chooses the shortest path until all nodes in the network are connected to each other. Prim’s algorithm is used to create software that solves the computer network design problem. The software is then applied to a LAN topology network, which will assist in determining the shortest cable length required to connect two computers located at separate locations.</p><p>Other useful real-life applications of Prim’s algorithm are:</p><blockquote>Game development eg: games like Minecraft</blockquote><blockquote>Study of molecular bonds in chemistry</blockquote><blockquote>Routing algorithms</blockquote><h3>Kruskal’s Algorithm</h3><p>Another greedy algorithm subset is Kruskal’s Algorithm. Let us look at the same problem discussed earlier, and try to solve it using Kruskal’s Algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*uDolLeNGaIxSvmjD" /></figure><p>Step 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*AX0d4xFMe9StobnZ" /></figure><p>Step 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*H2Nhw9AUkglsUTxN" /></figure><p>Step 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*D8D8h5QdPMzTTyJ-" /></figure><p>Step 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*kDdJvYIzqhDS3Uij" /></figure><p>Step 5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*x7psMreo6wShXvn3" /></figure><p>Step 6:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*DfJRuoW7tYzv-T2X" /></figure><p>Step 7:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*EyPHKB9EiEHhLdO1" /></figure><p>The summation of weights for the given example would be as</p><p>10+25+22+12+16+14= 99</p><p>As we can see, the combined minimum weight calculated using Prim’s and Kruskal’s algorithms is the same. Similarly, there are other similarities between these two algorithms. For instance, the input for both algorithms is a graph. The expected output is a minimum spanning tree. All the criteria for the two algorithms for example the no. of vertices before and after the implementation of the algorithms must be the same.</p><p>For the working of Kruskal’s Algorithm, initially, all the vertices of the given graph are arranged in ascending order. then we start connecting the vertices in such a manner that the edge first drawn is minimum among the lot. Here the edges are maintained as min-heap. Once all the edges are connected in a way that no loop is formed, we reach the end of our algorithm. One of the differences between Prim’s Algorithm and Kruskal’s Algorithm is that the tree can be formed in a discontinuous manner. At an intermediate state, it is not necessary that the system is continuous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*-Qe9rFB4FNybabRb.jpg" /></figure><p>Let us now discuss the time complexities of Kruskal’s Algorithm.</p><ul><li>Min heap o(e)</li><li>If all edges have the same weight then: e(loge)</li><li>The next edge can be obtained in o(logE) time.</li><li>Time for heap reconstruction: O(E) time.</li><li>Time taken for algorithm: <strong>o(ElogE)</strong> time.</li><li>Value of E at most can be o(V²)</li><li><strong>Best case:</strong><br>(n-1) edges <strong>[log(e)=to access each edge] o(nloge)</strong></li><li><strong>Worst case: </strong><br><strong>o(ElogV)</strong> or <strong>o(ElogE)</strong></li><li><strong>Special case:</strong> <br> Pre-arranged min-heap, saves deletion time, time complexity: <strong>o(E+V)</strong></li></ul><p>Real-time examples of Kruskal’s Algorithm are:</p><blockquote>A network of pipes for drinking water or natural gas</blockquote><blockquote>Cable TV connectivity problem</blockquote><blockquote>An electric grid</blockquote><blockquote>Single-link Cluster</blockquote><p>Now as we have read the basics of both, Prim’s and Kruskal’s Algorithm, let us see a comparative brief of both these algorithms.</p><p>To name a few similarities between the two algorithms, their inputs and outputs are the same respectively.</p><blockquote>The <strong>number of</strong> <strong>vertices </strong>before and after the completion of the two algorithms should be the same should be <strong>‘V’</strong>. The <strong>number of edges </strong>for the graph should be <strong>‘V-1&#39;</strong>.</blockquote><p>Now let us see a brief of a few differences between these two algorithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*HUKFE1QBz0fI-2_NGINRWg.png" /></figure><p>There are a few differences as well as a few similarities in both these algorithms. However, according to research and studies, it is found that Kruskal’s Algorithm is preferred over the Prim’s Algorithm. Kruskal’s technique appears to be a better fit for graphs that are large, sparse, and potentially unconnected in real-world applications.</p><p>References:</p><p>There was some amazing content for the above-discussed algorithms.</p><p>[1]Rafid, Im. (2019). Performance evaluation for Kruskal’s and Prim’s Algorithm in Minimum Spanning Tree using Networkx Package and Matplotlib to visualize the MST Result.</p><p>[2]Youssef, Ahmad &amp; Assem, Mohamad &amp; Joudi, Mohamad. (2019). MINIMUM SPANNING TREE: A Comparison Between Prim’s &amp; Kruskal’s Algorithms. 10.13140/RG.2.2.26624.66563.</p><p>[3]Peace O. Ayegba, Aderemi E. Okeyinka, Marion Adebiyi, Emmanuel O. Asani, Joyce A. Ayoola, Goodness C. Ben, Comparative Performance Analysis of Kruskal and Prim MST Algorithms, International Journal of Engineering Research and Technology, Volume 13, Number 12.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ee22240468b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>