Encryption component

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
MJU20
Posts: 237
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Encryption component

Post 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.

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Encryption component

Post 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.

kersing
Valued Contributor
Posts: 149
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 63 times
Been thanked: 56 times

Re: Encryption component

Post by kersing »

Please consider AES, there are plenty open source implementations like https://github.com/SmarterDM/micro-aes

Post Reply