<?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 Konstantino Sparakis on Medium]]></title>
        <description><![CDATA[Stories by Konstantino Sparakis on Medium]]></description>
        <link>https://medium.com/@sparakis?source=rss-e623ccf41ae1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gXLb614VsM9BNBFU_VrQIA.png</url>
            <title>Stories by Konstantino Sparakis on Medium</title>
            <link>https://medium.com/@sparakis?source=rss-e623ccf41ae1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 10:16:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sparakis/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[Level Up Your Video Chat Game.]]></title>
            <link>https://medium.com/broken-cipher/level-up-your-video-chat-game-ba46421d57d0?source=rss-e623ccf41ae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba46421d57d0</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[zoom]]></category>
            <category><![CDATA[video-conferencing]]></category>
            <category><![CDATA[video-chat]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Konstantino Sparakis]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 08:27:52 GMT</pubDate>
            <atom:updated>2020-07-02T18:23:22.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zovjfND_c8qYEiG-DPB9A.jpeg" /></figure><p>So here we are in the middle of 2020, No one is leaving their houses and video chats are taking over the world. Until recently all my video chats have been poorly executed and I had no second thought about it… well until I chatted with someone who had perfected their craft. I was blown away. Their face was perfectly visible in high definition, the lighting on point, and I could hear their voice as if they were right in front of me. I never realized I could actually enjoy a video chat, and how bad quality video chats actually fatigued me.</p><p>In a world where appearances can make or break a deal, where we run over to buy and wear a suit for an important business meeting. It’s Ironic that most of us never stop to think that the quality of our video conferencing speaks volumes about us.</p><p>From there I started down the path of making my online video chatting the best that I could! In this article I’ll point you to all the knowledge and tools I had to learn and buy to get a great setup going!</p><h3>Better Video</h3><p>Perfecting your video chat, all begins with getting the perfect picture.</p><h4>Lighting</h4><p>The secret to the best video quality is all about lighting. Modern camera sensors will turn the picture grainy to compensate for low light. But outside of that properly lighting your face will change the game for you, making you look more attractive and professional.</p><p>The secret to this is a little something called <strong>3 Point Lighting:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/0*Sa4EqeNxzOXpSXD3.jpg" /></figure><p>as you can see here we use three lights to light your self at different strengths.</p><p>I use led panels that allow me to control the temperature of the white (5600 for natural daylight look) and control the brightness.</p><p><a href="https://amzn.to/3gjjafF">https://amzn.to/3gjjafF</a></p><p>Soft box lights, and ring lights are also options, but can take up more room and can be more expensive.</p><p>Here are some good video to get more info:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6hfqJ7eWj0A%3Fstart%3D410%26feature%3Doembed%26start%3D410&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6hfqJ7eWj0A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6hfqJ7eWj0A%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/d9409b5011d504f6951ed1f782aca6b1/href">https://medium.com/media/d9409b5011d504f6951ed1f782aca6b1/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeZ5hpcn6tIM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeZ5hpcn6tIM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeZ5hpcn6tIM%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/110cfe99a4b98e5076ee293f275d5399/href">https://medium.com/media/110cfe99a4b98e5076ee293f275d5399/href</a></iframe><h4>More control Over Your Webcam</h4><p>Now maybe you’re in a situation where you don&#39;t have the best control of your lighting, or perhaps you want to zoom in the frame a little to cut out something in the background. This is where on Mac, iGlasses comes in handy.</p><p><a href="https://www.ecamm.com/mac/iglasses/">iGlasses</a></p><p>It does cost $20 but it allows you to take your web cam image and modify it as you please. Zooming in, Changing colors, and brightness of the shot. You can download the 7 day trial and test it out. For my friends using Windows, I’m confident there are alternatives and I might come back and update this with some.</p><h4>Using your Phone as a Webcam</h4><p>Now given the pandemic, most if not all reputable video cameras have sold out. Yes you can checkout Ebay and pay 60%-200% over for one if you really want (check out Logitech webcams). But the truth is our cellphones now a days have powerful cameras, that surpass even our typical webcams (especially macbooks).</p><p>With $7 and a USB connection you can utilize your high definition phone camera and make it a webcam.</p><p><strong>Here’s how:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1rXsWPEZosQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1rXsWPEZosQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1rXsWPEZosQ%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/1a256de9acb9f2098e8dbf0b4a5d8423/href">https://medium.com/media/1a256de9acb9f2098e8dbf0b4a5d8423/href</a></iframe><h4>Backdrop</h4><p>Now with any picture making sure that your background is well staged and looks good is half the battle. Perhaps spend some time cleaning the room, or repainting a wall if you have to. In my situation my make shift remote office is in the basement and making it look good is borderline impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/0*wWbkiOWKuM-rWbxp.jpg" /></figure><p>This is where a backdrop comes in, you can order a stand and backdrop with different colors and designs from Amazon. And if that’s too costly you can just simply run over to target grab a nice shower curtain or regular curtain. Iron it or steam it and hang it behind you.</p><p>Side note to this, yes Zoom has backdrops, and yes you look cheesy using them.</p><h3>Better Audio</h3><p>Better audio is a tricky beast to tackle. If you’re trying to stay away from purchasing a webcam with a built in higher quality microphone, or buying a standalone microphone (which I happened to own). I found this app the best for improving your audio!</p><h4><a href="https://krisp.ai/">https://krisp.ai/</a></h4><p>Unfortunately, its three dollars a month but it does a great job of cutting out the annoying AC/Heater running in the background and clearing out your voice so words sound more pronounced. Luckily, they give a 120min /week free with the app</p><h4>Zoom Audio Settings</h4><p>If you’re using Zoom, it actually has a few audio editing tools built right in. Open the settings tab in zoom. Then go ahead and click the advance button as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPVjoqK1iqPdII9dqZAE_g.png" /></figure><p>Here, you can go ahead and play with the different audio suppressor settings. I find that sometimes the default of auto isn’t accurate enough and I manually set it as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1gnu7oW1bIZhhk1Om2xuw.png" /></figure><h3>Conclusion</h3><p>With this you should have enough knowledge and know how to perfect your own video chat setup. It all starts from getting the perfect lighting, highest quality image and making sure your background is presentable. From there making sure your audio is crisp and clear.</p><p>If you have any suggestions or question! Feel free to leave a comment :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba46421d57d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/broken-cipher/level-up-your-video-chat-game-ba46421d57d0">Level Up Your Video Chat Game.</a> was originally published in <a href="https://medium.com/broken-cipher">The Broken Cipher</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encryption Basics For Java]]></title>
            <link>https://medium.com/broken-cipher/encryption-basics-for-java-c1baa592f075?source=rss-e623ccf41ae1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1baa592f075</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Konstantino Sparakis]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 06:17:39 GMT</pubDate>
            <atom:updated>2020-07-01T08:35:49.005Z</atom:updated>
            <content:encoded><![CDATA[<p>I will outline the basics of secure symmetric cryptography below and point out common mistakes I see online when people implement crypto on their own with the standard Java library. If you want to just skip all the details run over to <a href="https://github.com/google/tink/">Google’s new library Tink</a> import that into your project and use AES-GCM mode for all your encryptions and you shall be secure.</p><p>Now if you want to learn the nitty gritty details on how to encrypt in java read on :)</p><h3><strong>Block Ciphers</strong></h3><p>First thing first you need to pick a symmetric key Block Cipher. A Block Cipher is a computer function/program used to create Pseudo-Randomness. Pseudo-Randomness is fake randomness that no computer other than a Quantum Computer would be able to tell the difference between it and real randomness. The Block Cipher is like the building block to cryptography, and when used with different modes or schemes we can create encryptions.</p><p>Now regarding Block Cipher Algorithms available today, Make sure to <strong>NEVER</strong>, I repeat <strong>NEVER</strong> use <a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard">DES</a>, I would even say NEVER use <a href="http://en.wikipedia.org/wiki/3DES">3DES</a>. The only Block Cipher that even Snowden’s NSA release was able to verify being truly as close to Pseudo-Random as possible is <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES 256</a>. There also exists AES 128, the difference is AES 256 works in 256-bit blocks, while AES 128 works in 128 blocks. All in all AES 128 is considered secure although some weaknesses have been discovered, but 256 is as solid as it gets.</p><p>Fun fact <a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard">DES</a> was broken by the NSA back when it was initially founded and actually kept a secret for a few years and although some people still claim <a href="http://en.wikipedia.org/wiki/3DES">3DES</a> is secure, there are quite a few research papers that have found and analyzed weaknesses in <a href="http://en.wikipedia.org/wiki/3DES">3DES</a>.</p><h3><strong>Encryption Modes</strong></h3><p>Encryption is created when you take a block cipher and use a specific scheme so that the randomness is combined with a key to creating something that is reversible as long as you know the key. This is referred to as an Encryption Mode.</p><p>Here is an example of an encryption mode and the simplest mode known as ECB just so you can visually understand what is happening:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KmbYk8BhEboEtIgW.png" /></figure><p>The encryption modes you will see most commonly online are the following:</p><p><em>ECB CTR, CBC, GCM</em></p><p>There exist other modes outside of the ones listed and researchers are always working toward new modes to improve existing problems.</p><p>Now let’s move on to implementations and what is secure. <strong>NEVER</strong> use ECB this is bad at hiding repeating data as shown by the famous <a href="https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation">Linux penguin</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-DadgrNUqyjnBqVo.jpg" /></figure><p>When implementing in Java, note that if you use the following code, ECB mode is set by default:</p><pre>Cipher cipher = Cipher.getInstance(&quot;AES&quot;);</pre><p><strong>… DANGER THIS IS A VULNERABILITY!</strong> and unfortunately, this is seen all over StackOverflow and online in tutorials and examples.</p><p><strong>Nonces and IVs</strong></p><p>In response to the issue found with ECB mode nounces also known as IVs were created. The idea is that we generate a new random variable and attach it to every encryption so that when you encrypt two messages that are the same they come out different. The beauty behind this is that an IV or nonce is public knowledge. That means an attacker can have access to this but as long as they don’t have your key, they cant do anything with that knowledge.</p><p>Common issues I will see is that people will set the IV as a static value as in the same fixed value in their code. and here is the pitfall to IVs the moment you repeat one you actually compromise the entire security of your encryption.</p><h3><strong>Generating A Random IV</strong></h3><pre>SecureRandom randomSecureRandom = SecureRandom.getInstance(&quot;SHA1PRNG&quot;); byte[] iv = new byte[cipher.getBlockSize()]; randomSecureRandom.nextBytes(iv); IvParameterSpec ivParams = new IvParameterSpec(iv);</pre><p><strong>Note:</strong> SHA1 is broken but I couldn’t find how to implement SHA256 into this use case properly, so if anyone wants to take a crack at this and update it would be awesome! Also SHA1 attacks still are unconventional as it can take a few years on a huge cluster to crack. <a href="https://shattered.io/">Check out details here.</a></p><h3><strong>CTR Implementation</strong></h3><p>No padding is required for CTR mode.</p><pre>Cipher cipher = Cipher.getInstance(&quot;AES/CTR/NoPadding&quot;);</pre><h3><strong>CBC Implementation</strong></h3><p>If you choose to implement CBC Mode do so with PKCS7Padding as follows:</p><pre>Cipher cipher = Cipher.getInstance(&quot;AES/CBC/PKCS7Padding&quot;);</pre><h3><strong>CBC and CTR Vulnerability and Why You Should Use GCM</strong></h3><p>Although some other modes such as CBC and CTR are secure they run into the issue where an attacker can flip the encrypted data, changing its value when decrypted. So let’s say you encrypt an imaginary bank message “Sell 100”, your encrypted message looks like this “eu23ng” the attacker changes one bit to “eu53ng” and all of a sudden when decrypted your message, it reads as “Sell 900”.</p><p>To avoid this the majority of the internet uses GCM, and every time you see HTTPS they are probably using GCM. GCM signs the encrypted message with a hash and checks to verify that the message has not been changed using this signature.</p><p>I would avoid implementing GCM because of its complexity. You are better off using <a href="https://github.com/google/tink/">Googles new library Tink</a> because here again if you accidentally repeat an IV you are compromising the key in the case with GCM, which is the ultimate security flaw. New researchers are working towards IV repeat resistant encryption modes where even if you repeat the IV the key is not in danger but this has yet to come mainstream.</p><p>Now if you do want to implement GCM, here is a <a href="https://gist.github.com/praseodym/f2499b3e14d872fe5b4a">link to a nice GCM implementation</a>. However, I can not ensure the security or if its its properly implemented but it gets the basis down. Also note with GCM there is no padding.</p><pre>Cipher cipher = Cipher.getInstance(&quot;AES/GCM/NoPadding&quot;);</pre><h3><strong>Keys vs Passwords</strong></h3><p>Another very important note, is that when it comes to cryptography a Key and a Password are not the same things. A Key in cryptography needs to have a certain amount of entropy and randomness to be considered secure. This is why you need to make sure to use the proper cryptographic libraries to generate the key for you.</p><p>So you really have two implementations you can do here, the first is to use the code found on <a href="https://stackoverflow.com/questions/18228579/how-to-create-a-secure-random-aes-key-in-java">this StackOverflow thread for Random Key Generation</a>. This solution uses a secure random number generator to create a key from scratch that you can the use.</p><p>The other less secure option is to use, user input such as a password. The issue as we discussed is that the password doesn’t have enough entropy, so we would have to use <a href="https://en.wikipedia.org/wiki/PBKDF2">PBKDF2</a>, an algorithm that takes the password and strengthens it. Here is a <a href="https://stackoverflow.com/a/27928435/2607972">StackOverflow implementation I liked</a>. However Google Tink library has all this built in and you should take advantage of it.</p><h3><strong>Android Developers</strong></h3><p>One important point to point out here is know that your android code is reverse engineer-able and most cases most java code is too. That means if you store the password in plain text in your code. A hacker can easily retrieve it. Usually, for these type of encryption, you want to use Asymmetric Cryptography and so on. This is outside the scope of this post so I will avoid diving into it.</p><p>An <a href="https://cs.ucsb.edu/~chris/research/doc/ccs13_cryptolint.pdf">interesting reading from 2013</a>: Points out that 88% of Crypto implementations in Android were done improperly.</p><h3><strong>Final Thoughts</strong></h3><p>Once again I would suggest avoid implementing the java library for crypto directly and use <a href="https://github.com/google/tink/">Google Tink</a>, it will save you the headache as they have really done a good job of implementing all the algorithms properly. And even then make sure you check up on issues brought up on the Tink github, vulnerabilities popup here and there.</p><p>If you have any questions or feedback feel free to comment! Security is always changing and you need to do your best to keep up with it :)</p><p><em>Originally published at </em><a href="https://stackoverflow.com/a/43779197/2607972"><em>StackOverflow</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1baa592f075" width="1" height="1" alt=""><hr><p><a href="https://medium.com/broken-cipher/encryption-basics-for-java-c1baa592f075">Encryption Basics For Java</a> was originally published in <a href="https://medium.com/broken-cipher">The Broken Cipher</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>