Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Location
    Strasbourg, FRANCE
    Posts
    21

    Crypto Plugin and Blowfish

    Hello,

    I've a little question about the Blowfish.Encrypt and Blowfish.Decrypt actions:

    When I encrypt a file with a key, and I try do decrypt the file with an other key (a wrong key), I've no error message.
    Decrypted file is corrupted, but is there a way to detect a "wrong" key before ?

    Thank you for your answer.

    Arnaud

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Due to the nature of the decryption, there is no "wrong" key. The wrong key will simply give invalid results. One work-around might be to also encrypt/decraypt a text file with the same key. Then apply the decryption to both files, read in the text file and see if it contains the valid decrypted information.

  3. #3
    Join Date
    Aug 2003
    Location
    Strasbourg, FRANCE
    Posts
    21
    Thank you Brett,

    I've chosen the solution you advised to me, and it works ! It's a good workaround for what I'm doing.

    Thank you !

    Arnaud

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts