<?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 Chamod Malintha on Medium]]></title>
        <description><![CDATA[Stories by Chamod Malintha on Medium]]></description>
        <link>https://medium.com/@malinthachamod139?source=rss-2aa1ec7d0a77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*e1js-p1EIENqIcCW6eEtNg.jpeg</url>
            <title>Stories by Chamod Malintha on Medium</title>
            <link>https://medium.com/@malinthachamod139?source=rss-2aa1ec7d0a77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:43:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malinthachamod139/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[Swoogle]]></title>
            <link>https://malinthachamod139.medium.com/swoogle-2b1e395a5248?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b1e395a5248</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Mon, 28 Dec 2020 14:02:34 GMT</pubDate>
            <atom:updated>2020-12-28T14:13:07.223Z</atom:updated>
            <content:encoded><![CDATA[<p>A Search Engine for Semantic Web Documents</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*-Cj-EfAiM-9Rhq36k7SMmg.png" /><figcaption>Swoogle Home Page</figcaption></figure><p>Swoogle is a crawler based search an retrieval system for semantic web documents. It first started as a research project and now it is developed with a goal to providing a search engine for semantic web. Semantic web is a web of Semantic Web Documents (SWDs) which is an online document written using RDF or OWL, so we can say that semantic web is a distributed online repository of SWDs.</p><p>The Swoogle extracts meta data from the document and indexes into system for later searches and queries. Apart from that, the Swoogle crawler can be viewed as a focused crawler which can crawls and find relevant documents. This also provides services to human users through a browser interface and to software agents via RESTful web services while collecting these documents in a more systematic way. We can retrieve both ontologies and instances that are physically distributed on web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*IdZNmKCVa0TjgZ9ENwwyqw.jpeg" /></figure><p>The above diagram displays the architecture of the Swoogle search engine. It includes processes like analysis, indexing, discovering, servicing etc. This architecture is build upon several components. Those are meta data creation component, indexation and retrieval component, data analysis component, SWD discovery component and the user interface.</p><p>We need to make sure that newly added ontologies will not be just distributed randomly over the Web but will be collected and used to facilitate intelligent decisions. We need to focus more on reusing existing ontologies if it meets are need otherwise there will be no common understanding resulting zero interoperability and there would be no global processing. The Swoogle supports this objective by collecting all the relevant ontologies as per your need. This is the main use of the Swoogle search engine. Apart from searching ontologies, instances we can search by terms as well as with constraints in classes or properties if we want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*xEphsYdlIKrMIYHD3zm1zA.png" /></figure><p>The navigation property is another important aspect of the Swoogle which is provided by the namespaces of the documents. This ability gives the support to understand the structure of semantic web and internal links. The Swoogle does several types of crawling such as meta crawling, bounded html crawling, RDF crawling etc. In Swoogle, the semantic web archive is there to help user to check if a URI has been indexed and to track the previous versions of Semantic Web Documents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b1e395a5248" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WEB API]]></title>
            <link>https://malinthachamod139.medium.com/web-api-d389eeb2f220?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/d389eeb2f220</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 16:15:47 GMT</pubDate>
            <atom:updated>2020-10-25T16:15:47.490Z</atom:updated>
            <content:encoded><![CDATA[<p>API stands for an application programming interface. As the name suggests, Web API is an application programming interface for either web server or web browser which can be accessed over the web using the HTTP protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*Jz0YipHvK6fsI-b9VwBW4A.png" /><figcaption><a href="https://www.google.com/search?q=web+api&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=2ahUKEwjVl4Lv5s_sAhUL8XMBHWNCAA8Q_AUoAXoECCAQAw#imgrc=MhmyigW8UWDVTM">https://www.google.com/search?q=web+api&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=2ahUKEwjVl4Lv5s_sAhUL8XMBHWNCAA8Q_AUoAXoECCAQAw#imgrc=MhmyigW8UWDVTM</a></figcaption></figure><p>There are two types of web APIs:</p><ul><li>client-side web APIs</li><li>server-side web APIs.</li></ul><p>server-side web API is normally HTTP based web server. Client-side web API is a programmatic interface that provides functionalities for clients. The intention of developing both types of web API is to act as the communication medium of the client and the server. Most of the systems use web APIs to provide some resources like datasets for interested parties. Some of the countries collect lots of data and make them publicly available via web APIs for any convenient manner. Rest API IS THE most popular type of web API. It is a standardized architecture style for creating a web service API. Various technologies can be used to develop web APIs like Java, ASP.NET, etc.</p><p><strong>Why Use Web APIs?</strong></p><p>· Best for resource-oriented services.</p><p>· better performance and fast development of services.</p><p>· Support for many text patterns (JSON, XML, etc.)</p><p>· Good for devices that have tight bandwidth.</p><p>Web APIs ease the development of a developer by providing inbuilt functions, classes, tools, etc. so developers do not need to develop everything from the very basic level, they can use endpoints to access publicly available resources. Endpoints are used to interact with web APIs and are usually accessed by URIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*oxA7bIitIipF_Q067miPjw.png" /><figcaption><a href="https://www.google.com/search?q=web+api&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=2ahUKEwjVl4Lv5s_sAhUL8XMBHWNCAA8Q_AUoAXoECCAQAw#imgrc=6VSexsdRJkqXiM&amp;imgdii=4tNBfpP6FycmcM">https://www.google.com/search?q=web+api&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=2ahUKEwjVl4Lv5s_sAhUL8XMBHWNCAA8Q_AUoAXoECCAQAw#imgrc=6VSexsdRJkqXiM&amp;imgdii=4tNBfpP6FycmcM</a></figcaption></figure><p>Work of a web API can be described as following: client devices like laptops, mobile phones make requests to the web API and when the API receives the requests it sends those requests to the server to process the requests. After the processing is complete, it returns the results to the client.</p><p><strong>Examples for Web APIs:</strong></p><ul><li><strong>Google Maps API:</strong> allows developers to use google maps on their web pages.</li><li><strong>YouTube API:</strong> allows developers to integrate with youtube. There are multiple APIs provided by youtube such as YouTube Analytics API, YouTube Data API, YouTube live streaming API, YouTube Player APIs, etc.</li><li><strong>Web Audio API:</strong> allows users to use the audio contents on the web.</li><li><strong>Web Speech API:</strong> can be used to add speech recognition to a web app.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MavDCWJgP6qNmnKTPua3sg.png" /><figcaption><a href="https://idratherbewriting.com/learnapidoc/docapis_intro_to_rest_api_doc.html">https://idratherbewriting.com/learnapidoc/docapis_intro_to_rest_api_doc.html</a></figcaption></figure><p>Nowadays web APIs have become more popular with the advancement of internet services. Over the past 10–15 years, the number of available web APIs has grown significantly. Most companies and organizations are heavily relying on web APIs to serve their business clients. The best example is, in the year 2014, more than 5 billion requests were made to Netflix.</p><p><strong>Limitations of Web APIs</strong></p><p>· Security exposure: Adding an API adds vulnerability to your website.</p><p>· Not suitable for continuous services.</p><p>· Whenever a new Database operation is introduced, the API should be expanded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d389eeb2f220" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure cloud platform]]></title>
            <link>https://malinthachamod139.medium.com/azure-cloud-platform-325d234cfdbc?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/325d234cfdbc</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Sun, 09 Aug 2020 10:37:51 GMT</pubDate>
            <atom:updated>2020-08-09T10:37:51.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a sample environment — SE/2015/043</p><p><strong>The article is as a requirement of the course SENG 41283: Distributed and Cloud Computing. </strong><a href="https://science.kln.ac.lk/tunits/setu/index.php/component/sppagebuilder/90-seng-41283"><strong>https://science.kln.ac.lk/tunits/setu/index.php/component/sppagebuilder/90-seng-41283</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*WG8fFo0mU8YiC7_tcqlfpw.png" /><figcaption>Architecture</figcaption></figure><p>The assignment was to create the above sample environment of shared cloud architecture using the Microsoft Azure cloud platform. We get to use the student account for this assignment and had permission to use any code snippets available freely or to create our own sample codes. Azure cloud is a platform that we can use to build, deploy, test and managing applications and services through data centres remotely. It also provides solutions like infrastructure as service (IaaS), Platform as service (PaaS) etc. I studied tutorials and documentation of Azure and started developing the solution for the given architecture.</p><p><strong>Referred code samples</strong>: <a href="https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet">https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-DotNet</a></p><p><a href="https://github.com/chamodmalintha/Azure-Assignment-Service3">https://github.com/chamodmalintha/Azure-Assignment-Service3</a></p><p>I referred above-mentioned code samples in order to set up service 01 and service 03 of the architecture. Service 01 code had built-in authentication with Microsoft which were developed using C# and ASP.Net framework. It has the functionality to display the details or payload of the user who is authenticated. I modified some functionalities by adding a database and inserting the payload to it. Service 03 which includes MVC architecture was created by me using the same programming language and framework. It has the functionalities of getting data from the SQL database and Redis caching. I used visual studio IDE to work with the coding because it is easy to work with Azure while using IDE’s inbuilt plugins. I built and executed both applications to make sure it is running well locally.</p><p>Then I started working with the Azure portal and creating resources for the sample environment. The following link will direct you to the GitHub repository of ARM templates which was generated by the resources’ attributes and parameters.</p><p><strong>ARM templates</strong>: <a href="https://github.com/chamodmalintha/SE-2015-043-Azure-ARM-Templates">https://github.com/chamodmalintha/SE-2015-043-Azure-ARM-Templates</a></p><p>Then after as the first step to working with Azure portal, I created resources for the storage purpose because at first, I needed to make sure that program runs locally while connecting to the server and Redis remotely. In order to do that I created SQL database and Redis cache resources in a single resource group and added firewall configurations. I used Microsoft SQL server management studio tool to work with the remotely created SQL database. Because it has the ability to connect with the Azure server in minimum steps and gives out an interface to work with it easily and execute queries, so I didn’t use the portal itself to create tables, execute queries etc. Now let&#39;s look into the resource creation one by one.</p><p><strong>SQL server </strong>— resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*Xuku2_hafvLp7rXch9D8og.png" /><figcaption>creating the server</figcaption></figure><p><strong>SQL database </strong>— resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*qM2indjKm8dCBtrD18fX3Q.png" /><figcaption>SQL Database — create</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*pd1ezDer6yiYc-d9XmourA.png" /><figcaption>Code Snippet added to work with Azure DB</figcaption></figure><p>Firewall configurations on SQL DB and Sever</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*Achp9Knrp816oQFtz37M6Q.png" /><figcaption>Firewall — Database</figcaption></figure><p><strong>Redis cache</strong> — resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*povsCw0Pkp2qVsL-8N3rzA.png" /><figcaption>Creating Redis cache</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*sGfsqxll3EMuM65l71UsPQ.png" /><figcaption>Redis code snippet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*Dk6Py2BmGh57Y6Gy9SgtnQ.png" /><figcaption>Getting previously acquired data from Redis — see the timestamp differences</figcaption></figure><p>Firewall configurations on Redis cache</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEeBHu1jqu_LMSuSPyt5IA.png" /><figcaption>Enable firewall</figcaption></figure><p>Microsoft SQL Server Management Studio</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsXVr5VjfuGNty5cEEdjTg.png" /><figcaption>Running queries for Azure DB</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*qyjyd0qqxor_yyOF2pbfzw.png" /><figcaption>Tables are created by the Management studio server connection</figcaption></figure><p>After that, I made sure that the remote storage is functioning as expected. Then looked up to publishing both web apps to the cloud. In order to do that I went through cloud documentation and tutorials. Gaining basic knowledge in that area I created a web app plan in azure and created the web app resources for both applications. While I was creating those I also focused on adding the application’s insights resource as well. I published the code directly from the IDE which made the process easier for me. Now let&#39;s look into the procedure I went through to create those resources.</p><p><strong>WepApp </strong>— resources</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*8hJwTAYQpI9Ze-vo3_VilA.png" /><figcaption>service 01 — create</figcaption></figure><p>Web app service plan is created and added prior to the web app resource creation. One plan can contain many web apps or functions as resources. Same steps were followed when creating service 03 as well and also for the application insights as well.</p><p><strong>Application insights</strong> — resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*1tYhmZ7tDOcfVzXeAXTNfg.png" /><figcaption>web app — insights</figcaption></figure><p><strong>Publishing code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*8Z5ZbKUt8w-2y2lS6V7zqg.png" /><figcaption>Web app publishing using visual studio IDE</figcaption></figure><p>Next requirement was to create a function which is integrated with the application and also with the same storage. It was about the Service02 of the architecture diagram. This function should be able to generate files and store them under the storage account of the application. I added output configuration as blob storage type and wrote the function in the Azure portal itself using the C# and .Net core. The resource creations are described below.</p><p><strong>FunctionApp (Service02)</strong>— resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*j_NlSp__1k45rkupyBJHGg.png" /><figcaption>Creating Function App</figcaption></figure><p>Storage account must be created to work with functions therefore I created a new storage account, where it responsible to store files generated by the function itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*Ad-9dsplpplpuxRSZaJ4BA.png" /><figcaption>Adding Azure Blob storage as output</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*6VK-nQu_sg1STOboS-d6nA.png" /><figcaption>Executing the function</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKu-uXcWqLF-2ihhOxdPFg.png" /><figcaption>Output file of the Blob container</figcaption></figure><p><strong>FunctionApp Insights </strong>— resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*HP3_OFGSwke21SIkjVJcTg.png" /><figcaption>Creating function insights</figcaption></figure><p><strong>FrontDoor </strong>— resource</p><p>The front door’s purpose is to manage several instances of a web application which is deployed into distinct regions. It acts as a single door to all those instances if one instance is down it will give out the service using a close-by instance of an application without the user knowing it. So I created a front door and configured as below and made sure that the main services and integrated services are functioning correctly.</p><p>When we creating a front door we need to focus on the security of the web applications as well. After studying the documentation I found out that a firewall is available for the web applications but it has to be used with only CDN, Frontdoor or a Gateway. This enables the security of every request and blocks all the other threats to the application as a whole. This web app firewall is applied to the application globally and also securing the other applications or functions integrated with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*ZxQoO_be9imNMXod7gz2bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*n1I_6iBE9KiYCM_EycsqdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*iz4kL7iCN_2iSs1ztWjPNw.png" /><figcaption>Adding specifications for the frontDoor resource</figcaption></figure><p><strong>WAF(WebApp Firewall)</strong> — resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*VlMZsFz2Gt5J3y-ntd-6aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZvdNz0fZ1k-CC8K_7pviw.png" /><figcaption>Adding policies after creating WAF</figcaption></figure><p><strong>Active Directory(AD)</strong></p><p>I identified that the authentication process must be handled after the above resource creations. I went to the default active directory which was given by our university. I saw that many test applications are already been registered there. I also registered my application as webApp-se-2015–043 in that default active directory. When I focusing on users I identified that all university students are registered as users there. So when I registered my application there every student who has an account can be login to my webApp. The steps that I followed to register my webApp are briefly described below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SR0-vgPusQEBOW1sm1vWhw.png" /></figure><p><strong>App registration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*kBBRWDzOw67HeuUxsf2-ZA.png" /><figcaption>Registering a new app</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*VIuIhAE6v7QcWnowbd2mUQ.png" /><figcaption>web config file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVWw-yWRjMUB8Sg1nLjEZg.png" /><figcaption>Web Application is registered</figcaption></figure><p><strong>Key Vault </strong>— resource</p><p>Azure key vault is the resource where we can maintain all the app secrets. So according to the assignment we had to create Azure key vault integrating the active directory. We can manage keys, certificates, secrets in it by generating or creating manually. Once we create a secret for a certain application we can use that app secret in our own codes to integrate with that particular app to use its services. In order to create such secret, I manually generated and granted the API permission to access the web app which I have registered within the default students’ active directory of the University of Kelaniya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*Fy9UIsYUVSPXmTPj1zrltA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*AWkcmAQVFUsr2ujCZZoK_g.png" /><figcaption>Creating a secret</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gf84XYahlc65r5q0VKhf6g.png" /><figcaption>Adding API permissions</figcaption></figure><p>After creating all the above resources according to the mentioned way I verified the whole functionality of the two service apps and function and made sure my sample cloud environment was connected to each resource accordingly and successfully functioning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKsdoLT7thVZZrs_BUj_ig.jpeg" /><figcaption>Service 01 — login</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjshgCEZ1TvX6lB3Y9Mr8A.jpeg" /><figcaption>Service 01 — Home</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26AEUsI5_Ee-iJ-g4Qx2Pw.jpeg" /><figcaption>Service 03 — Home page</figcaption></figure><p>References:</p><p><a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-webapp">Add Microsoft identity platform sign-in to an ASP.NET web app</a></p><p><a href="https://freecoursesite.com/1-az-203-developing-solutions-for-microsoft-azure-exam-prep/">https://freecoursesite.com/1-az-203-developing-solutions-for-microsoft-azure-exam-prep/</a></p><p><a href="https://www.youtube.com/watch?v=POWm4EfU9bA">https://www.youtube.com/watch?v=POWm4EfU9bA</a></p><p><a href="https://www.youtube.com/watch?v=4BwyqmRTrx8">https://www.youtube.com/watch?v=4BwyqmRTrx8</a></p><p><a href="https://www.youtube.com/watch?v=Vxf-rOEO1q4">https://www.youtube.com/watch?v=Vxf-rOEO1q4</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=325d234cfdbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Digest Functions]]></title>
            <link>https://malinthachamod139.medium.com/secure-digest-functions-223ef5c281c8?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/223ef5c281c8</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 15:42:29 GMT</pubDate>
            <atom:updated>2020-07-30T07:28:30.017Z</atom:updated>
            <content:encoded><![CDATA[<p>Secure digest functions are famously known as Cryptographic hash functions. It is a mathematical function that takes an input value and converts it into a meaningless output called a hash. The input to the hash function can differ to the occasion but the output always has a fixed length. when it comes to cryptographic hashing functions, hash, hash value, Message digest or Digital fingerprint, are all the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*RB4r2a95hDgs5GAZxVgQ1Q.png" /><figcaption><a href="https://www.quora.com/How-is-hashing-done">https://www.quora.com/How-is-hashing-done</a></figcaption></figure><h4><strong>Properties of Hash Functions</strong></h4><p>· One way function: Hashing is based on a one-way mathematical function which is really hard to reverse. That means, using the hash value that generated, it is really hard to find the input value.</p><p>· Collision Resistance: This means, two different inputs of any lengths are not resulting in the same hash.</p><p>Hashing does not provide the security to transmitted data. So, hashing is vulnerable to man in the middle attacks.</p><p>The most famous examples of hashing functions are, MD5 and SHA256.</p><p><strong>MD5</strong></p><p>MD5 refers to message digest 5 algorithm. It came out to the public as the MD4 is identified as a vulnerable algorithm. After some time this MD5 is also announced as a not secure algorithm because it was cracked by collision attacks. After this MD5, MD6 came out addressing all those weaknesses in MD5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*FHNCCo5edVKnNmoIW_QTfQ.png" /></figure><p><strong>SHA-1</strong></p><p>SHA refers to the secure hash algorithm. SHA-1 came after the issues identified in the initial algorithm which is SHA-0. But SHA-1 is not suitable to use it is now deprecated algorithm because NIST announced that it is vulnerable for the collision attacks. Bitcoin- bitcoin uses the SHA256 hashing function which is a highly secured algorithm for the security of its block mining process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*ua3FzWuIAsKFdPPvX6Jndg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=223ef5c281c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Public key Algorithms in Cryptography]]></title>
            <link>https://malinthachamod139.medium.com/public-key-algorithms-in-cryptography-90cfe76c50a2?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/90cfe76c50a2</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 15:41:58 GMT</pubDate>
            <atom:updated>2020-07-30T07:17:00.227Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous article, we have talked about cryptography and symmetric key algorithms. So let’s dive into the Asymmetric key cryptography.</p><h3>Asymmetric Encryption</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*T0AJkhnXJ0qY35IPGbz2UQ.png" /><figcaption><a href="https://www.militaryaerospace.com/trusted-computing/article/14035441/trusted-computing-algorithms-asymmetric">https://www.militaryaerospace.com/trusted-computing/article/14035441/trusted-computing-algorithms-asymmetric</a></figcaption></figure><p>Asymmetric encryption algorithms do not use one single key to encrypt and decrypt the information like symmetric encryption. Instead of using a single key, asymmetric encryption mechanism uses 2 keys that called public and private keys. Usually, the key length is 512 to 4096 bits. The data encryption mechanism in asymmetric encryption is really slow because this algorithm is based on difficult computational algorithms.</p><p>These algorithms are also known as public-key algorithms. In this technique, the sender and the receiver do not share a secret key. Instead of using a secret key, it is using the receiver’s public key to encrypt the data. so that encrypted information can only be decrypted by the receiver’s private key which is secret to him.</p><p>Let’s explain asymmetric encryption further,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*OSVf-I93k-JYftolXtytoA.jpeg" /><figcaption><a href="https://dusted.codes/the-beauty-of-asymmetric-encryption-rsa-crash-course-for-developers">https://dusted.codes/the-beauty-of-asymmetric-encryption-rsa-crash-course-for-developers</a></figcaption></figure><p>when using asymmetric encryption, both Alice and bob have to generate keypair on their computers. Keys can be securely generated by using the RSA algorithm. that algorithm will generate a public and private key that are mathematically linked to each other. Public keys can be used to encrypt data and only the matching private key can be used to decrypt it. Even though the keys are linked together, they cannot be derived from each other.</p><p>This process start by exchanging the public keys. So, Alice takes a document and encrypt it with bob’s public key. Then she sends the encrypted file to blob and he uses his private key to unlock the document and read it. Only bob is able to decrypt the message because they used asymmetric encryption.</p><p>RSA, ElGamal, elliptic curves are good examples for asymmetric encryption algorithms.</p><p><strong>RSA</strong></p><p>RSA is a public algorithm which can be used by anyone. RSA is much slower than DES in both hardware and software. RSA preserves confidentiality, authentication and non-repudiation. This algorithm is suitable for digital signing and encryption and widely used in electronic commerce protocols and secured with lengthy keys like in 512 to 2048 bits keys. In RSA signing verification is faster than the signature generation.</p><p><strong>DH</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbSspEtl7QpWmtj0F0NZoQ.jpeg" /></figure><p>It is an asymmetric algorithm founded in 1976 and also assumed that it is very safe because the time to crack this algorithm is unknown. In addition, resource consumption of DH algorithm is at a medium level. 512, 1024, 2048 bit key lengths are available. DH is for the modern and most common way of key exchange algorithm used in networks. Not used for encrypting a bulk of data because it is extremely slow just used for key exchange.</p><p><strong>Digital Signature Algorithm</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*TRNpFN8elxdel8dHMzzkJQ.png" /></figure><p>Key length is in 512 to 1024 range of bits. A digital signature authenticates a source that certain party has signed the data and guarantee that data has not been altered. Third parties accept these digital signatures as proof so it cannot be repudiated. Mainly there are six steps to the digital signature process. This standard uses DSA as the algorithm and public key algorithm is based on ElGamal. Speed of this algorithm is similar to RSA but slow in the verification process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90cfe76c50a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secret key Algorithms in Cryptography]]></title>
            <link>https://malinthachamod139.medium.com/secret-key-algorithms-in-cryptography-1e527a2c57de?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e527a2c57de</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 14:57:06 GMT</pubDate>
            <atom:updated>2020-07-30T07:04:14.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jVvb0zUgTeyWkXwXgPqKew.jpeg" /><figcaption><a href="https://www.technologyreview.com/2019/07/12/134211/explainer-what-is-post-quantum-cryptography/">https://www.technologyreview.com/2019/07/12/134211/explainer-what-is-post-quantum-cryptography/</a></figcaption></figure><p>Cryptography is both the practice and the study of hiding information. In the old times, when comes to cryptography, it was all about encryption. that means methods for changing data from its ordinary, conceivable structure into a boundless state, making it inaccessible without the key. Data encryption methodologies were mostly used when there is critical information to share, such as in spy services, military services, etc.. The most famous example for the data encryption is the Enigma story in World War 2.</p><h3><strong>Symmetric Encryption</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*D2Kwlzm7GGqP70dYlcADhw.png" /><figcaption><a href="https://www.cheapsslshop.com/blog/symmetric-vs-asymmetric-encryption-whats-the-difference/">https://www.cheapsslshop.com/blog/symmetric-vs-asymmetric-encryption-whats-the-difference/</a></figcaption></figure><p>Symmetric encryption algorithm uses one single key to encrypt and decrypt the information. It is also known as the Secret key algorithm. in this technique sender and the receiver has a pre-shared secret key. usually, that key contains 80 to 256 bits. The data encryption mechanism in symmetric encryption is really fast because this algorithm is based on simple mathematical operations. DES, 3DES, AES are good examples for symmetric encryption algorithms.</p><p><strong>DES</strong></p><p>DES refers to data encryption standard. It is developed by IBM and it is the most famous symmetric encryption standard. DES converts blocks of 64-bits of clear text into ciphertext. It generates a 56bits key. In DES there are two modes of encryption: ECB (Electronic code book) mode and CBC (Cipher Blockchaining) mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ijNALHvJ5NyhT9uA0SLoAQ.png" /><figcaption>DES- ECB mode</figcaption></figure><p>In ECB each clear test block is independently encrypted into ciphertext. Which results, similar plain texts will generate a similar ciphertext using the same key. So it is vulnerable to known-plaintext attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*e34PRyvjawi8qyXOqNLMYQ.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation">https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation</a></figcaption></figure><p>When it comes to CBC, the encryption of each block depends on previous blocks. when encrypting a plaintext, it uses the previous block ciphertext to generate the next block ciphertext. So, it is much more secure compared to the ECB mode. Blockchain technology is the best example for ECB mode.</p><p><strong>AES</strong></p><p>This encryption algorithm is developed based on the Rijndael algorithm which uses key length up to 256 bits. In addition, it is faster, more efficient and also suitable for high-throughput low latency environments but its very young algorithm comparing to DES.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*lV2n6jbKT8I_XigchpW-sg.jpeg" /></figure><p><strong>RC</strong></p><p>RC algorithms are widely used in networking applications because of its speed and variable key length capabilities. RC has many types like RC2, RC4, RC5, and RC6. RC4 is a stream cipher while all others are block ciphers which have different kinds of key lengths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0L3kG6O_OZL9lwbHZpEx9Q.png" /><figcaption><a href="https://images.app.goo.gl/M4RhR974f4LEqVjD8">https://images.app.goo.gl/M4RhR974f4LEqVjD8</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e527a2c57de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Message Queues]]></title>
            <link>https://malinthachamod139.medium.com/message-queues-8db554d7dcbc?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/8db554d7dcbc</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 14:34:49 GMT</pubDate>
            <atom:updated>2020-07-22T14:52:10.203Z</atom:updated>
            <content:encoded><![CDATA[<p>RabbitMQ — Work Queue</p><p>RabbitMQ is can be defined as an open-source message queuing application or a message broker. Which consists of functionalities like connecting between applications, transfer messages to consumers from queues etc. In here we consider messages as which includes information it could be a simple text message or and complex one. Message queues are loaded with messages and RabbitMQ is the application that handling all the traffic and gradually passing all the messages to the relevant consumers. RabbitMQ connects in between web apps most commonly. It helps to balance the load and reduce the delivery time for web servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*FtGSS9JP7ZH6E4Wlh4lDrQ.png" /><figcaption><a href="https://images.app.goo.gl/BUKgXHwCCzMgMyUw5">https://images.app.goo.gl/BUKgXHwCCzMgMyUw5</a></figcaption></figure><p>In RabbitMQ architecture we can see that it consists of three parts those are producer, queue, and consumer. An application that acts as a client is a producer while the consumer is at the retriever’s end. At times the same software act as both. Most of the time RabbitMQ is used when an application has multiple consumers with the requirement of distributing messages efficiently between them. RabbitMQ routes the messages from the queue to consumers after the producer publishes the message to the queue. This queuing mechanism helps to decouple applications and those can act independently in different programming languages as well.</p><p>I tested the sample work queue code given in the official RabbitMQ GitHub repository. The reference link is <a href="https://github.com/rabbitmq/rabbitmq-tutorials">https://github.com/rabbitmq/rabbitmq-tutorials</a>.</p><p>I downloaded the java-maven example code for the work queue and imported the project to the Eclipse IDE. Once I imported, I checked whether the dependency is available for java AMQP client which is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*b8-TZo_oZay4VNxOgItKYA.png" /><figcaption>dependency</figcaption></figure><p>RabbitMQ and Erlang which is a required programming language and runtime environment for this are already downloaded and installed beforehand. Erlang is supporting for concurrency, distribution, and fault tolerance.</p><p>Once the RabbitMQ service is started we can enable management UI in port <a href="http://localhost:15672/">http://localhost:15672/</a> and also we can see other ports that are listening from the command line. Then I started two worker nodes because we are executing the work queue. Then send messages to those through RabbitMQ using another shell by running “NewTask.js”. We can clearly see that the messages are sent to worker nodes in a distributed way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*fdGTFCDqfN8RGK2CcT6_Qg.png" /><figcaption>Executed worker in two consoles</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*o_SANkFOD86-eyVcJ8tpjg.png" /><figcaption>Tasks are produced to the Queue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*WX3zwYNMCU77tCjVJOKRGA.png" /><figcaption>Running consumers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*WuA19rs4ns3rddTLmysacw.png" /><figcaption>Consumers successfully receiving messages from the queue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*Stb4bieJr-b15ct17D9xZQ.png" /><figcaption>RabbitMQ management UI display</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8db554d7dcbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Remote Method Invocation (Java- RMI)]]></title>
            <link>https://malinthachamod139.medium.com/java-remote-method-invocation-java-rmi-70a1606fab32?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/70a1606fab32</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Sat, 18 Jul 2020 16:26:22 GMT</pubDate>
            <atom:updated>2020-07-18T16:26:22.854Z</atom:updated>
            <content:encoded><![CDATA[<p>Java RMI stands for Remote method invocation. This technology is used for communication purposes of java virtual machines which are situated remotely. RMI method can invoke those remote methods in other machines and can transfer objects and can provide remote services as well. Protocols areconstantly used for communication where it sets standards for load objects dynamically as the request arrives. It enables the transmission of multiple objects at once which include codes that can change the service configurations and functionalities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mioQu96vMBM24q8Iyb1KDQ.jpeg" /><figcaption><a href="https://www.tutorialspoint.com/java_rmi/java_rmi_introduction.htm">https://www.tutorialspoint.com/java_rmi/java_rmi_introduction.htm</a></figcaption></figure><p>RMI has its own architecture which is divided as layer-wise. It includes layers such as remote reference layer, stub layer and skeleton layer, transport layer, etc. Those layers have a certain job to perform to make RMI method a success. For example, the transport layer handles all the transmission of data and the requests, the remote reference layer identifies which service to call and make a skeleton matching for the request’s stub. RMI methods are advantageous because of its security, maintainability, easy to code and reusability, etc. The server is protecting itself by using a registry which is open to the client but not its location and the underlying implementation.</p><p>Example code is executed to identify its concepts thoroughly. I have used the same components and files given as the example of Java RMI. It contains classes for clients and servers and interfaces as well as its implementations. Firstly, had to compile the java files and generated compiled files through command prompt then started the registry of the server. After that started the server and then executed the client end. It successfully executed as a java application without any errors that gave the result on the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tjWBpYh_HIEomE44Xt-d8g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XYUkccdrZPBjPGYmEIl5hg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mQ_T070mdqHQtL-a0FuuA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNT0Z2ZYB8lI26vd-9W4mg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70a1606fab32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JAX-WS RPC (Remote Procedure Call)]]></title>
            <link>https://malinthachamod139.medium.com/jax-ws-rpc-remote-procedure-call-f692aaf33f86?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/f692aaf33f86</guid>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 13:51:27 GMT</pubDate>
            <atom:updated>2020-07-13T13:52:25.086Z</atom:updated>
            <content:encoded><![CDATA[<p>Remote procedure call (RPC) is a protocol that helps one program to request service from another program located in another computer in a network. In this method, processes that are communicating does not need to understand network details because RPC takes care of that. RPC is similar to the IPC (Inter Process Communication).</p><p>Java RPC is referred under the JAX-WS. It is for SOAP web services. JAX-WS (SOAP) is one of the main API’s defined by Java for developing web service applications since JavaEE 6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*k9f9FBXzGv4SaPIv5EHG_A.png" /><figcaption><a href="https://www.ejbtutorial.com/distributed-systems/introduction-to-remote-procedure-call-rpc">https://www.ejbtutorial.com/distributed-systems/introduction-to-remote-procedure-call-rpc</a></figcaption></figure><p>Java RPC is not a one-way flow and it uses a request-response style of interaction for communication (client-server style). RPC is best suited for Local area networks.</p><p>In RPC, simply what happens is, there is a client and server — so the client machine contains some methods and the server has the implementation of those methods. So when the client needs to get something done, it makes a request to the server. Then the server is executing those methods and returns the result to the client machine. Then the client machine will display the result.</p><p>This is an example of java code to explain the RPC concept.</p><figure><img alt="HelloWorldImpl.java" src="https://cdn-images-1.medium.com/max/900/1*tg-moj25vhdeTTQRWyVt3Q.jpeg" /><figcaption>HelloWorld.java</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*peSRKEHmro-qknZhr0KaIQ.jpeg" /><figcaption>HelloWorldImpl.Java</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*hva3N8DwH32GX7VkoDNdYg.jpeg" /><figcaption>Publisher.java</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*P59jf7o9dU61gzpzuWfvHg.jpeg" /><figcaption>HelloWorldClient.java</figcaption></figure><p>Characteristics of RPC</p><ul><li>Parameters are passed only by values.</li><li>Synchronous</li></ul><p>Examples for RPC</p><ul><li>Java RMI (Remote Method Invocation)</li><li>CORBA (Common Object Request Broker)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f692aaf33f86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[External Data Representation and Marshalling]]></title>
            <link>https://malinthachamod139.medium.com/external-data-representation-and-marshalling-b9a6ce70062?source=rss-2aa1ec7d0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9a6ce70062</guid>
            <category><![CDATA[xdr]]></category>
            <category><![CDATA[çorba]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[xml]]></category>
            <dc:creator><![CDATA[Chamod Malintha]]></dc:creator>
            <pubDate>Sun, 21 Jun 2020 06:12:05 GMT</pubDate>
            <atom:updated>2020-06-21T06:12:05.991Z</atom:updated>
            <content:encoded><![CDATA[<p>Information stored in running programs is displayed as data structures. The data is independent of the form of communication used and data Structures must be flattened before transmission rebuilt on arrival. The individual primitive data elements that are transmitted in messages can be Data values ​​of many different types, and not all computers store primitive values ​​like Integers in the same order.</p><p>The representation of floating-point numbers also differs Between architectures. There are two ways of ordering the whole numbers: the so-called Big-endian order in which the most significant byte comes first; and little-endian order, in which it comes last. Another problem is the set of codes used to represent characters: for example, most applications on systems like UNIX use ASCII characters Coding with one byte per character, while the Unicode standard allows this Text representation in many different languages ​​and takes two bytes per character.</p><p>Marshalling is the process of getting and assembling a collection of data items Convert them into a format suitable for sending in a message. Unmarshalling is a process of Decompose them on arrival and create an equivalent collection of data items Ahead. Therefore, marshalling is the transformation of structured data items, Converts a primitive value into an external data representation. Similarly, unmarshalling is to Generate primitive values ​​from external data representation and Restructure the data structure.</p><p>There are three approaches to external data representation and marshalling.</p><p>· <strong>CORBA’s regular data representation</strong></p><p>Concerned about an outer portrayal for the organized and crude sorts that can be passed as the contentions and aftereffects of remote technique summons in CORBA. It very well may be utilized by an assortment of programming languages.</p><p><strong>· Object serialization in Java.</strong></p><p>Concerned about the compression and external data representation of a single object or tree of objects that may need to be Sent to a report or stored on disk. Only for use in Java.</p><p><strong>· XML (Extensible Markup Language).</strong></p><p>This defines the text format Representation of structured data. Originally, Textual self-describing structured data — for example, documents accessible on the Web-but now used to represent the data sent by clients and servers in web services.</p><p>In the first two cases, the activities are intended to be marshalling and unmarshalling activities made by a middleware layer with no connection to the application programmer. Even in the case of XML, which is therefore textual and more accessible with manual encoding, software for marshalling and unmarshalling is available to all commonly used programming platforms and environments. Because of marshalling It requires the consideration of all the best details of the primitive representation components of composite items, the process is likely to be prone to errors if done manually. Proportionality is another issue that can be addressed in design automatically generated marshalling procedures.</p><p>In the first two approaches, the primary data types are marshaled binary Forms. In the third entry (XML), primary data types are represented by text. The text representation of a data value is usually longer than the equivalent value Binary representation. The HTTP protocol is another example of text entry.</p><p><strong>CORBA’s Common Data Representation (CDR)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*mCepRqLfAup0wimLS_S0OQ.jpeg" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fslideplayer.com%2Fslide%2F222276%2F&amp;psig=AOvVaw1A8soBnX3Sy-8MGUXp1yfO&amp;ust=1592805805178000&amp;source=images&amp;cd=vfe&amp;ved=0CAIQjRxqFwoTCJjg8ZaekuoCFQAAAAAdAAAAABAU">https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fslideplayer.com%2Fslide%2F222276%2F&amp;psig=AOvVaw1A8soBnX3Sy-8MGUXp1yfO&amp;ust=1592805805178000&amp;source=images&amp;cd=vfe&amp;ved=0CAIQjRxqFwoTCJjg8ZaekuoCFQAAAAAdAAAAABAU</a></figcaption></figure><p>CORBA CDR is an external data representation defined with CORBA 2.0. CDR can represent all data types that can be used as arguments and return values in CORBA’s remote appeals. These consist of 15 primary types and composite types. Every argument or result in a remote appeal is represented by a sequence of bytes of the appeal or result message.</p><p>The marshalling operation can be generated automatically from the type of data sent in the message. Types of data structure and basic data types are described in CORBA IDL, which provides an overview of the RMI method’s objections and types of results. In other words, you can use CORBA IDL to describe the data structure of a message.</p><p><strong>Java object serialization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*pwMbKl8czO8lGyLut1HDZQ.png" /><figcaption><a href="https://www.geeksforgeeks.org/serialization-in-java/">https://www.geeksforgeeks.org/serialization-in-java/</a></figcaption></figure><p>In Java, the term serialization refers to the activity of flattening an object or a connected set of objects into a serial form that is suitable for storing on disk or transmitting in a message.</p><p>Java object serialization uses reflection to find the class name of the object to be serialized and the name, type, and value of its instance variables. That’s all you need for a serialized form. Deserialization creates a class with the serialized form of the class name. Then use it to create a new constructor with an argument type that corresponds to the one specified in the serialized form. Finally, use the new constructor to create a new object with instance variables whose values are read from the serialized form. This recursive procedure continues until the class information and the type and name of all required class instance variables are written out. Each class is given a handle and no class is written to the byte stream more than once.</p><p>The process of serialization and deserialization of remote call arguments and results is usually done automatically by the middleware and does not involve the application programmer. If desired, programmers with special requirements can write their own versions of the methods to read and write objects.</p><p><strong>Extensible Markup Language (XML)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*Pb8SPzpfjK5X9LQp_ocmPQ.png" /><figcaption><a href="https://dimestorerocket.com/read-a-xml-file-fast-with-csharp/">https://dimestorerocket.com/read-a-xml-file-fast-with-csharp/</a></figcaption></figure><p>XML is a markup language defined by the World Wide Web Federation (W3C) for its general use on the Web. In general, a markup language is a text encoding that represents both the text and the details of its structure or appearance. Both XML and HTML are derived from standardized generalized markup language. HTML is designed to define the look of web pages. XML is designed to create structural documents for the web.</p><p>XML is extensible in that it allows users to define their own tags, unlike HTML which uses a fixed set of tags. However, if you want to use XML documents in more than one application, the tag names must match each other. For example, clients typically use SOAP messages to communicate with web services. SOAP is a tagged XML format for use by web services and clients.</p><p>Some external data representations, such as CORBA cdrs, do not need to be self-explanatory, as it assumes that the client and server exchanging messages have prior knowledge of the order and type of messages. However, XML is designed for different purposes in different applications. This is made possible by providing tags along with using namespaces to define the meaning of the tags. Also, tags allow you to select only the parts of the document that your application needs to process. Adding information related to other applications is not affected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9a6ce70062" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>