<?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 Ammar Mansuri on Medium]]></title>
        <description><![CDATA[Stories by Ammar Mansuri on Medium]]></description>
        <link>https://medium.com/@ammarmansuri?source=rss-949eef137b0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nsSX2jhwVYUXRTGE</url>
            <title>Stories by Ammar Mansuri on Medium</title>
            <link>https://medium.com/@ammarmansuri?source=rss-949eef137b0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:15:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ammarmansuri/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[Symmetric Encryption in JAVA using SafEncrypt]]></title>
            <link>https://medium.com/@ammarmansuri/symmetric-encryption-in-java-using-safencrypt-80f6d1fabf87?source=rss-949eef137b0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/80f6d1fabf87</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[key-derivation]]></category>
            <category><![CDATA[symmetric-encryption]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cryptography-experts]]></category>
            <dc:creator><![CDATA[Ammar Mansuri]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 14:10:07 GMT</pubDate>
            <atom:updated>2023-08-15T17:50:59.713Z</atom:updated>
            <content:encoded><![CDATA[<p>In our research project, we are conducting a survey for the comparison Java Cryptography Architecture (JCA) with our custom wrapper library “<strong>SafEncrypt</strong>” in order to understand the usability and security aspects of symmetric encryption operations.</p><p>Through the development of SafEncrypt, our focus is to provide developers with a simple, usable, and secure cryptographic library that aims to eliminate misuse leading to security vulnerabilities.</p><p>Your responses will play a pivotal role in identifying the strengths and areas for improvement of “SafEncrypt” as well as its comparison with JCA. This survey is expected to take approximately 30 minutes to complete. Your participation is invaluable, and your responses will remain confidential.</p><p>The survey results will be used exclusively for academic research purposes and will be collected anonymously.</p><p><strong>Sections Overview</strong></p><p>This survey is essentially divided into 2 portions:</p><ul><li><strong>Tasks:</strong> In the following section, you will be given 2 tasks to complete using SafEncrypt.</li></ul><p>Upon completing the tasks, you will find a URL for redirection to a SURVEY that requires your input on:</p><ul><li><strong>Survey:</strong> Questionnaire relevant to your Background Information and task done using SafEncrypt</li></ul><p><strong>Tasks Overview</strong></p><p>The next section comprises two tasks that involve implementing symmetric encryption for a provided message using <strong>SafEncrypt</strong>. Please read the following documentation and important instructions before proceeding with the tasks.</p><p><strong>Documentation</strong></p><p>Here’s the official <a href="https://github.com/ammar-mansuri/safencrypt/blob/develop/Readme.md">documentation</a> for SafEncrypt, which you can refer to for any kind of support required, including library installation and implementation guidance, to successfully complete the tasks: <a href="https://github.com/ammar-mansuri/safencrypt/blob/develop/Readme.md"><strong>SafEncrypt Documentation</strong></a></p><p>To use SafEncrypt:</p><ol><li>If you wish to obtain the JAR file directly, you can access it through the following link: <a href="https://drive.google.com/drive/u/2/folders/1SeZwPouxhIToj9G3_53RFKL-wBnuMGQL">SafEncrypt JAR</a></li><li>If you prefer to build it using Maven (by cloning and building locally), you can find the GitHub repository at: <a href="https://github.com/ammar-mansuri/safencrypt">SafEncrypt</a></li></ol><p><strong>Time Recording</strong></p><ul><li>Please record the time in format [ eg. 11:25 (11 minutes : 25 seconds) ] it takes you to complete each symmetric encryption task using SafEncrypt.</li><li>You may use any method you prefer to track the time, such as a stopwatch or a timer.</li><li>The recorded time is crucial and will help us understand the efficiency and ease of implementation.</li><li>The timer has to be started just when you start to code the given task and stop as soon as you complete it.</li></ul><p><strong>Saving Code &amp; Recorded Time</strong></p><ul><li>For each of the tasks, please SAVE the recorded time and the code, as they are required to be entered in the survey sections.</li><li>This will help us to understand the efficiency and effectiveness of SafEncrypt.</li></ul><h3>TASK 1</h3><blockquote><strong><em>Encryption:</em></strong></blockquote><blockquote><em>Task Description: You need to implement</em><strong><em> symmetric encryption </em></strong><em>for a given message using SafEncrypt:</em></blockquote><blockquote><strong>“The quick brown fox jumps over the lazy dog. 42 elephants danced under the silver moon. Sparkling stars fill the night sky, creating a mesmerizing sight.”</strong></blockquote><blockquote><em>Encryption Algorithm: Use AES (Advanced Encryption Standard) with GCM (Galois/Counter Mode) mode </em><strong><em>[AES/GCM] </em></strong><em>with key length </em><strong><em>[192 bits]</em></strong></blockquote><blockquote><strong><em>Decryption:</em></strong></blockquote><blockquote><em>Obtain the relevant data from the above encryption step, and decrypt the cipher-text with SafEncrypt by using the resultant </em><strong><em>algorithm, key</em></strong><em>, </em><strong><em>cipher-text</em></strong><em> and </em><strong><em>IV</em></strong></blockquote><p><strong>Note:</strong> Once completed <strong>Task1</strong>, please <strong>SAVE</strong> the following<strong>:</strong></p><ul><li>The time you recorded for the completion of the <strong>Task1</strong> in the text box below</li><li>The code of the <strong>Task1</strong></li></ul><h3>TASK 2</h3><blockquote><strong><em>Encryption:</em></strong></blockquote><blockquote><em>Task Description: You need to implement </em><strong><em>symmetric encryption </em></strong><em>for a given message using SafEncrypt:</em></blockquote><blockquote><strong>“Blue elephants dance under the starry night, chasing dreams and secrets into the unknown”</strong></blockquote><blockquote><em>Encryption Algorithm: Use AES (Advanced Encryption Standard) with GCM (Galois/Counter Mode) mode </em><strong><em>[AES/GCM] </em></strong><em>with key length </em><strong><em>[256 bits]</em></strong></blockquote><blockquote><em>Password-Based Key Derivation Function: When using SafEncrypt builder, use the </em><strong><em>PBKDF2</em></strong><em> with algorithm </em><strong><em>“PBKDF2WithHmacSHA512”, </em></strong><em>which should be used as</em><strong><em> [PBKDF2_With_Hmac_SHA512] </em></strong><em>in SafEncrypt’s context, to derive the encryption key from the password </em><strong><em>“usingPbkdf2KDF”</em></strong></blockquote><blockquote><em>Associated Data: Include the following message data as </em><strong><em>associated data</em></strong><em> during encryption: </em><strong><em>“Adding Associated Data”</em></strong></blockquote><blockquote><strong><em>Decryption:</em></strong></blockquote><blockquote><em>Obtain the relevant data from the above encryption step, and decrypt the cipher-text with SafEncrypt by using the </em><strong><em>algorithm</em></strong><em>, </em><strong><em>key</em></strong><em>, </em><strong><em>cipher-text,</em></strong><em> </em><strong><em>IV </em></strong><em>and</em><strong><em> associated data.</em></strong></blockquote><p><strong>Note:</strong> Once completed <strong>Task2</strong>, please <strong>SAVE</strong> the following<strong>:</strong></p><ul><li>The time you recorded for the completion of the <strong>Task2</strong> in the text box below</li><li>The code of the <strong>Task2</strong></li></ul><h3>Redirection to Survey</h3><p>As you now have completed both the TASK’s, <strong>PLEASE CLICK ON THE URL BELOW</strong> to complete the questionnaire survey.</p><p><strong>SafEncrypt Questionnaire Survey URL: </strong><a href="https://forms.gle/N1J8xQtkTTSbURcB7"><strong>SafEncrypt Survey</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80f6d1fabf87" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>