<?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 Mrinal Aswin on Medium]]></title>
        <description><![CDATA[Stories by Mrinal Aswin on Medium]]></description>
        <link>https://medium.com/@mrinal.aswin?source=rss-1606ef61fb44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lNfPvXlmKYYAnkxG.</url>
            <title>Stories by Mrinal Aswin on Medium</title>
            <link>https://medium.com/@mrinal.aswin?source=rss-1606ef61fb44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:51:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrinal.aswin/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[Password-less authentication using cryptography in Bitcoin]]></title>
            <link>https://medium.com/digital-banking-labs/how-to-implement-password-less-authentication-using-cryptography-in-bitcoin-443785023264?source=rss-1606ef61fb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/443785023264</guid>
            <category><![CDATA[bitauth]]></category>
            <category><![CDATA[passwordless]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Mrinal Aswin]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 06:53:50 GMT</pubDate>
            <atom:updated>2017-06-07T13:02:33.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeYkcZjjdgpGmS6UBNVUrw.jpeg" /><figcaption>Authentication using cryptography in Bitcoin</figcaption></figure><p><em>“Bitcoin is a remarkable cryptographic achievement and the ability to create something that is not duplicable in the digital world has enormous value”</em></p><p><em>— </em>Eric Schmidt, Former CEO of Google</p><p>Cryptography based security implemented over <a href="https://bitcoin.org/en/">bitcoin</a> is a remarkable achievement whose application can be applied in today’s mobility driven Internet ecosystem. Here I would like to add a note on how we can use it to achieve a secure means for a password-less authentication in applications.</p><h3>What makes us use it?</h3><p>People often forget passwords, and a brute force attack over a weak passwords is quite successful. Passwords may travel over the wire in the form of plain text which leads to attacks or it needs to be secured, which often use an expensive operation.</p><p>Hence we could use the cryptographic methods of bitcoin which instead of using a shared secret, the client signs each request using a private key and the server checks to make sure the signature is valid and matches the public key. By signing each request, it makes a man in the middle attack nearly impossible. By addition of a <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> to the signed data, it can prevent replay attack. Since the private key is never revealed to the server, it does not need to be exchanged between the server and the client over a side channel like HMAC. Again, it uses <a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">elliptic curve cryptography</a>, which performs much better than RSA.</p><p>The cryptography in the bitcoin has already proved that it is rock solid and that it is already securing billions of dollars worth of bitcoin.</p><h3>How to use it?</h3><p>Here I would like to use the same cryptography model used in bitcoin using a node server with <a href="https://expressjs.com/">Express framework</a> and JavaScript for client side code. I would be using the <a href="https://github.com/bitpay/bitauth">BitAuth</a> library, which can be installed using the NPM. The client side code would generate a public key and private key pair using <a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">elliptic curve cryptography</a>, same as how bitcoin works. A public <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN (System Identification Number)</a>, is generated from the Public key generated, same as the bitcoin Address. The client adds an x-signature header, which is obtained by signing the data and the public key is included in the x-identity header, to every packet requesting the server for resources.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8beedd996d044e58fae7c25278a17ea4/href">https://medium.com/media/8beedd996d044e58fae7c25278a17ea4/href</a></iframe><p>The server side code verifies the validity of the signature and that it matches the identity using the <a href="https://github.com/bitpay/bitauth">BitAuth</a> library. It then computes the <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN</a> from the public key and checks whether the <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN</a> has access to the requested resource</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b57e40f7991ff7fc1501c95ec915ec66/href">https://medium.com/media/b57e40f7991ff7fc1501c95ec915ec66/href</a></iframe><p>The client can include a <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> to prevent replay attack and that the server would check that the <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> is higher than the previously used <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a></p><h3>Where to find it?</h3><p>You could find an example of the server and client code <a href="https://github.com/mrinalaswin/auth_bitcoin_crypto">here</a></p><p><a href="https://github.com/mrinalaswin/auth_bitcoin_crypto">mrinalaswin/auth_bitcoin_crypto</a></p><p><strong>References:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">Elliptic curve cryptography - Wikipedia</a></li><li><a href="https://github.com/bitpay/bitauth">bitpay/bitauth</a></li><li><a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">Identity protocol v1 - Bitcoin Wiki</a></li><li><a href="https://en.bitcoin.it/wiki/Nonce">Nonce - Bitcoin Wiki</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=443785023264" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/how-to-implement-password-less-authentication-using-cryptography-in-bitcoin-443785023264">Password-less authentication using cryptography in Bitcoin</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>