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.
Encryption component
-
- Posts: 244
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 75 times
- Been thanked: 50 times
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: Encryption component
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 157
- Joined: Wed Dec 02, 2020 7:28 pm
- Has thanked: 64 times
- Been thanked: 58 times
Re: Encryption component
Please consider AES, there are plenty open source implementations like https://github.com/SmarterDM/micro-aes