10-15-2017 02:25 AM
I downloaded the Labview Blowfish VI and have been looking at it. I noticed that when I'm trying to decrypt the text after encrypting it, it doesn't seem to output the original text.
Can someone tell me how I can fix this or where to look at?
10-15-2017 04:00 AM - edited 10-15-2017 04:55 AM
Your code has very fundamental bugs:
See how far you get.
10-15-2017 04:53 AM - edited 10-15-2017 04:58 AM
Here's a quick attempt at simplification. Seems to work just fine (but please verify!). This is a very rough draft!
(It will not work if the initial string contains \00 before encryption, for example (still better than using underscore as a sentinel value!). I would recommend to prepend the size when encrypting and use that to trim the decrypted result. Seems safer. I would also recommend the usual connector patterns and implement error IO. None of this is implemented.).