Photo by Gabriel Heinzer on Unsplash

JavaScript: RSA and ECDSA Signatures

JavaScript — The Worst and Also One of The Best Software Languages

--

There are a few technical things that are both a sinner and a saint. ARP is one example and is one of the most amazing protocols for connectivity but is a disaster for security. But, it is JavaScript that possibly holds the top stop for a programming language that is one of the best and one of the worst of all the other software languages. Overall, it has a horrible syntax and is a nightmare to debug, but it is just so useful.

The End of JavaScript? No way!

A few years ago, I predicted that JavaScript would eventually be replaced by more modern languages. How wrong was I? I thought that Flash Actionscript, Java and Microsoft XAML would take over from the horrible syntax of JavaScript. But all of these have failed, and it is JavaScript that is the king of the browser. And, now, with Node.js, we have a back-end language. For any serious person in Cybersecurity, the usage of JavaScript and/or Node.js is an essential part of scripting. And for cryptography, we can do things fast in the browser with JavaScript or do it on the back-end with Node.js. So, let’s look at implementing digital signatures in pure JavaScript.

RSA and ECDSA

--

--

Prof Bill Buchanan OBE FRSE
ASecuritySite: When Bob Met Alice

Professor of Cryptography. Serial innovator. Believer in fairness, justice & freedom. Based in Edinburgh. Old World Breaker. New World Creator. Building trust.