Now for the encryption...
base64 is not encryption. It is conversion to another character representation, which is easily transparent to most word processors, such as BBEdit, TextEdit, etc.

You need to decide what level of security is required.
Read up, (especially if medical data is involved)


On Mar 13, 2010, at 11:17 AM, Bill Vlahos wrote:

I want to add a file from disk to a custom property, encrypt it, and save it. Then I want to be able to extract the file from the custom property and open it in the appropriate application.

The first step is to put the file into the custom property but my code below only puts the path to the file.
on mouseUp
  answer file "Please select a file..."
  put it into lFileToRead
  -- Read the binary contents of a file into a variable
  open file lFileToRead for binary read
  read from file lFileToRead until end
put base64Encode(lFileToRead) into lBinaryFile -- not sure if this is needed
  close file lFileToRead
  set the uFileStore of me to lBinaryFile
end mouseUp

What am I missing?

Bill Vlahos

Jim Ault
Las Vegas



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to