gauravmehla / Node-Go-AES-encryption-example

An example of how to encrypt a string using a selected key that can be used between a node server and a Go client

Repository from Github https://github.comgauravmehla/Node-Go-AES-encryption-exampleRepository from Github https://github.comgauravmehla/Node-Go-AES-encryption-example

Node Go AES encryption example

This is an example of how to encrypt a string using AES which is then passed between node.js and Go.

Overview

I banged my head for quite a while in order to get AES encryption to work when sending a string between node.js and Go. Hopefully sharing this will stop others from having the same headaches.

Obviously, these would be used in seperate solutions.

Disclaimer

Although this code does work it isn't meant to be a fully functioning app but more an example of how it can be done. Please take the code "as is". You might need to tweak some of the flow to get it to work for you.

About

An example of how to encrypt a string using a selected key that can be used between a node server and a Go client

License:MIT License


Languages

Language:Go 71.5%Language:JavaScript 28.5%