I AM USING THE COMMAND:
decrypt input using "aes-128-cbc" with "1111"
It works fine. However, if I write encrypted text to a text file called dest and then:
open file dest
read from file until ""
put it into input
close file dest
decrypt input using "aes-128-cbc" with "1111"
Then I get an error on the decrypt command: bad decrypt
WHY SHOULD WRITING AND THEN READING ENCRYPTED CONTENT TO A TEXT FILE GENERATE AN ERROR ON DECRYPTION?
I'M PERPLEXED
DECRYPTION ERROR
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 24
- Joined: Tue Dec 04, 2007 7:02 pm
DECRYPTION ERROR
Last edited by drOrganized on Sun Aug 30, 2009 12:03 am, edited 1 time in total.
I think the first thing you should do, is fix your keyboard (Especially the caps-lock key).
Some cyphers expect data to be a certain length, and use padding on the input data to get to that length. If you just feed such a cypher "dummy" data, you need to make sure it's the expected length for that cypher.
Some cyphers expect data to be a certain length, and use padding on the input data to get to that length. If you just feed such a cypher "dummy" data, you need to make sure it's the expected length for that cypher.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
- Posts: 24
- Joined: Tue Dec 04, 2007 7:02 pm
OK, can you help me a little more as this is not well covered in Revolutions documentation. How can I understand whether my data is the right length for the cypher? Can you suggest a cypher that is less stringent?BvG wrote:I think the first thing you should do, is fix your keyboard (Especially the caps-lock key).
Some cyphers expect data to be a certain length, and use padding on the input data to get to that length. If you just feed such a cypher "dummy" data, you need to make sure it's the expected length for that cypher.
Thanks!
Orgy,
You should also read in the docs about the read command. You're doing it wrong.
Also, there is no need to write subjects with ALL CAPS, but BvG wrote that already.
Best regards,
Mark
You should also read in the docs about the read command. You're doing it wrong.
Also, there is no need to write subjects with ALL CAPS, but BvG wrote that already.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact: