![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm french and I speak just a little.
Excuse my bad English. I want a soft for encrypte a texte file and I use the EncrypteFile .zip for to understand the process. I have a problem with binaryfile.dll after decrypt end modify when I encrypt, I have the message with line "c = reader.ReadBytes(data(),32768)" Thinks for you help |
|
||||
|
In line 68: data() = Crypto.Decrypt(PassPhrase,secret())
The 'data' array changes its size. You can no longer assume that it is an array of 32768 bytes. Therefore you should redimension it in the beginning of EncryptFile sub by adding: Dim data(32768) As Byte BTW, EncryptFile can handle large files. In your case you could use a much simpler code, similar to this example: http://www.basic4ppc.com/help/crypto/index.html |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Selecting the Image to display in the BinaryFile | batninja | Questions & Help Needed | 7 | 05-12-2007 01:18 PM |
| BinaryFile Error | dlfallen | Bug Reports | 2 | 05-01-2007 09:34 PM |