Top

GO

Cross Programming Language Encryption – C# vs JavaScript vs Go, Part 4

See a demo at Github This 4th section of the article was written about a week after I finished the other 3 to clarify a mistake I kinda perpetuated from the begging. After reviewing my code, one of my colleagues raised the following issue: even though I was using RSA encryption, I was using the wrong public and private key. So I had to go back, to the beginning: RSA RSA (Rivest–Shamir–Adleman) is one of the first public-key cryptosystems and is widely used for secure data transmission. In such a cryptosystem, the encryption key is public and distinct from the decryption key which is kept secret (private). In RSA, this asymmetry is based on the practical difficulty of factoring the product of two large prime numbers, the "factoring problem". The acronym RSA is the initial letters of...

See a demo at Github ...

Read More

Cross Programming Language Encryption – CSharp vs Go, Part 2

See a demo at Github The first part of this article, discussed Encryption coding at C# level. It introduced you in the world of AES and RSA encryption algorithms. But the role of this story is not only to introduce you to some encryption algorithms but also show you how to code them under some programming languages. As mentioned before, our team goal was to encrypt messages from a module written in C#, and decrypt them in a module written in Go lang. Coding AES with Go For this purpose, I have chosen to define a structure holding the Key and the Initialization Vector (IV). As explained in the previous article, we will use a private Hash which will be shared between...

See a demo at Github The...

Read More