Page 1 of 1

Encryption component

Posted: Fri Jun 10, 2022 5:41 pm
by MJU20
Is it possible to create a component for (light) encryption?

This doesn't have to be a NSA-proof component, but to get communication between two devices a little bit secure?
Let's say a component that uses a certain key to encrypt/decrypt a message that goes in or comes out of the component.

The key could be something the Flowcode user generates and that would be the same for encrypt/decrypt.

For instance the component has a parameter "key" and a key generated by the user is used.
Parameter that is an "encrypt" feature that takes a string.
The component does things to the string, using the key and some hocus-pocus and generates an unreadable output.

If this output is used as an input for the decrypt function of this macro, and the key is ok, the output is encrypted again.

Re: Encryption component

Posted: Fri Jun 10, 2022 6:27 pm
by BenR
We could do something like enigma where it's a basic substitution cypher. Easy to implement but also fairly easy to brute force with a computer.

Or we could go the route of a public private key system using primes. Much harder to brute force but a lot harder to code.

Re: Encryption component

Posted: Fri Jun 10, 2022 6:45 pm
by kersing
Please consider AES, there are plenty open source implementations like https://github.com/SmarterDM/micro-aes