gioblu / Cape

String encryption for Arduino, limited microcontrollers and other embedded systems.
67 stars 18 forks source link

Change key once program is running #8

Closed oldmanegan closed 8 years ago

oldmanegan commented 8 years ago

Is there a means of changing the key once the program is running that uses the Cape library? I have the instantiation working fine, but wish to change keys periodically for security reasons without aneed to restart and find a means to load a new key at start up.

Thanks.

gioblu commented 8 years ago

Ciao @oldmanegan. Yes, this is a must have. Thank you for pointing out. I will soon work on it.

gioblu commented 8 years ago

Ciao @oldmanegan I have pushed the new version (1.4) containing the changes you proposed. Please if you can give it a test. Thank you again.

oldmanegan commented 8 years ago

Hi Giovanni, I tried it several times and could not change the original key. Possibly I am making an error. I set the key instantiation then on the setup() I attempted to modify. Did not work. Must I change it in a standard font ion or the loop()? Thanks for your work,

John

Sent from my iPhone

On Jul 25, 2016, at 11:56,

Giovanni Blu Mitolo notifications@github.com wrote:

Ciao @oldmanegan I have pushed the new version (1.4) containing the change you proposed. Please if you can give it a test. Thank you again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

gioblu commented 8 years ago

_reduced_key was not reset correctly on key change. Thank you for pointing out the problem. I developed an example to show how to handle the change, generating a random key every loop cycle. See the last commits / pull the master version :)

Thank you for pointing out the lack of documentation :).

gioblu commented 8 years ago

Ciao @oldmanegan let me know if works now so I will close this issue. https://github.com/gioblu/Cape/releases/tag/1.4.1 Thanks again.

oldmanegan commented 8 years ago

All seems well, Giovanni. Thanks!

On Tue, Jul 26, 2016 at 2:40 PM, Giovanni Blu Mitolo < notifications@github.com> wrote:

https://github.com/gioblu/Cape/releases/tag/1.5

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gioblu/Cape/issues/8#issuecomment-235364768, or mute the thread https://github.com/notifications/unsubscribe-auth/AOzb_uy73trEOPApsvptT_8HKQ1EE7dcks5qZlStgaJpZM4JTwMx .

gioblu commented 8 years ago

Ciao @oldmanegan thank you again for feedback. Happy tinkering :)

oldmanegan commented 8 years ago

By the way, the 1.5 tag link does not work. I only used what is still shown on Github as 1.4

On Sat, Jul 30, 2016 at 12:16 PM, Giovanni Blu Mitolo < notifications@github.com> wrote:

Ciao @oldmanegan https://github.com/oldmanegan thank you again for feedback. Happy tinkering :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gioblu/Cape/issues/8#issuecomment-236374079, or mute the thread https://github.com/notifications/unsubscribe-auth/AOzb_jZgOSAzz4Kj12G7aiXwkZqmhJ8-ks5qa3jdgaJpZM4JTwMx .

gioblu commented 8 years ago

1.4 contains the bug you noticed, 1.4.1 (See https://github.com/gioblu/Cape/releases/tag/1.4.1) contains the fix.