[{"content":"","date":"19 May 2026","externalUrl":null,"permalink":"/","section":"","summary":"","title":"","type":"page"},{"content":" Hello, and Welcome! # Thanks for stopping by. Whether you stumbled across this page by accident or came here with a purpose, I’m glad you’re here.\nAt the core of who I am, I am a disciple of Jesus Christ. My faith isn\u0026rsquo;t just a part of my life; it is the foundation of everything I do. I believe in the truth of the Bible, and I strive to live a life that does not compromise on the Word of God, standing firm in faith even when the culture shifts.\nWhat Drives Me # I believe that one of the greatest gifts we can give each other is our attention. I love to listen to people.\nWe live in a loud, busy world where many feel unheard and overwhelmed. I want to be someone who is truly there for others to sit with you in the messy moments, listen to your story, and point you toward an anchor that holds. Ultimately, my goal is to share the unchanging hope of God with a world that desperately needs it.\nMy Other Interests # While my faith is my compass, God has given us a fascinating world to engage with. Here are a few other areas you’ll often find me reading, thinking, or talking about:\nTechnology: I love exploring how tech shapes our future and how we can use it intentionally without letting it rule our lives. Politics: I keep a close eye on the political landscape, trying to understand the world through a thoughtful, principle-first lens. Sports: Whether it\u0026rsquo;s the strategy, the competition, or just the pure entertainment, I’m always up for a good game. Let’s Connect # If you want to talk about faith, debate a recent game, discuss the latest tech trends, or if you just need someone to listen and pray for you; my door is always open.\n\u0026ldquo;Now may the God of hope fill you with all joy and peace in believing, that you may abound in hope by the power of the Holy Spirit.\u0026rdquo; — Romans 15:13 NKJV\nThanks for reading, and God bless!\n","date":"19 May 2026","externalUrl":null,"permalink":"/about/","section":"","summary":"","title":"About me","type":"page"},{"content":"","date":"18 May 2026","externalUrl":null,"permalink":"/posts/","section":"","summary":"","title":"","type":"posts"},{"content":"","date":"18 May 2026","externalUrl":null,"permalink":"/posts/politics/","section":"","summary":"","title":"Articles on Politics","type":"posts"},{"content":" Where is India heading # Here is where the content goes\n","date":"18 May 2026","externalUrl":null,"permalink":"/posts/politics/where-is-india-heading/","section":"","summary":"","title":"Where Is India Heading","type":"posts"},{"content":"","date":"18 May 2026","externalUrl":null,"permalink":"/posts/sports/","section":"","summary":"","title":"Articles on Sports","type":"posts"},{"content":"","date":"18 May 2026","externalUrl":null,"permalink":"/posts/technology/","section":"","summary":"","title":"Articles on Technology","type":"posts"},{"content":" Decline of Cricket in India # This is the content\n","date":"18 May 2026","externalUrl":null,"permalink":"/posts/sports/decline-of-cricket-in-india/","section":"","summary":"","title":"Decline of Cricket in India","type":"posts"},{"content":"Go introduced a new library called Elliptic Curve Diffie Hellman(crypto/ecdh) in v1.20.\nLet\u0026rsquo;s see how to use this library to exchange encrypted data between two entities without sharing the secret that was used to encrypt the data.\nGenerate public key on the client # clientCurve := ecdh.P256() clientPrivKey, err := clientCurve.GenerateKey(rand.Reader) if err != nil { t.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } clientPubKey := clientPrivKey.PublicKey() Generate public key on the server # serverCurve := ecdh.P256() serverPrivKey, err := serverCurve.GenerateKey(rand.Reader) if err != nil { t.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } serverPubKey := serverPrivKey.PublicKey() The clientPubkey and serverPubKey can be shared over the network as plain text.\nGenerate Secret using the public key # Client generates the clientSecret using the server\u0026rsquo;s public key.\nclientSecret, err := clientPrivKey.ECDH(serverPubKey) if err != nil { t.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } Server generates the serverSecret using the client\u0026rsquo;s public key\nserverSecret, err := serverPrivKey.ECDH(clientPubKey) if err != nil { t.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } Sharing Encrypted Data # Using the clientSecret the client can encrypt data and share over the network while the server will be able to decrypt the data using the serverSecret.\nWhat was wonderful about this is the fact that the secret in itself was not shared over the network.\nConclusion # Diffie-Hellman key exchange algorithm is used more often than we realize. It is a very nice addition to the Go standard library.\nFull Code # package main import ( \u0026#34;bytes\u0026#34; \u0026#34;crypto/ecdh\u0026#34; \u0026#34;crypto/rand\u0026#34; \u0026#34;log\u0026#34; ) func main() { clientCurve := ecdh.P256() clientPrivKey, err := clientCurve.GenerateKey(rand.Reader) if err != nil { log.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } clientPubKey := clientPrivKey.PublicKey() serverCurve := ecdh.P256() serverPrivKey, err := serverCurve.GenerateKey(rand.Reader) if err != nil { log.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } serverPubKey := serverPrivKey.PublicKey() clientSecret, err := clientPrivKey.ECDH(serverPubKey) if err != nil { log.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } serverSecret, err := serverPrivKey.ECDH(clientPubKey) if err != nil { log.Fatalf(\u0026#34;Error: %v\u0026#34;, err) } if !bytes.Equal(clientSecret, serverSecret) { log.Fatalf(\u0026#34;The secrets do not match\u0026#34;) } log.Printf(\u0026#34;The secrets match\u0026#34;) } ","date":"18 May 2026","externalUrl":null,"permalink":"/posts/technology/how-to-use-elliptic-curve-diffie-hellman-library-in-go/","section":"","summary":"","title":"How to Use Elliptic Curve Diffie Hellman Library in Go","type":"posts"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":"","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"},{"content":"","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"}]