Fwd: Can compress also password protect?
stephen barncard
stephenREVOLUTION2 at barncard.com
Sun Mar 21 19:18:39 EDT 2010
the 15k limit squashed my previous post,
put compress(tdata) into tCompressed
put codify(tCompressed) into tEncrypted
function codify pData
encrypt pData using pCipher with password pKey
put the result into tR
if tR is not empty
then
putmessage "Encode Error:" & return & tR
end if
return it
end codify
you can use
put the cipherNames into tCypherNameList
to get the possible encryption methods.
I used this for the client I mentioned earlier that wanted compressed and
encrypted MP3 files
Decrypt and decompress on the other side in that order.
On 21 March 2010 17:41, Bill Vlahos <bvlahos at mac.com> wrote:
> I think you misunderstood my question.
>
> How do I compress a file and then encrypt that file?
>
> Bill Vlahos
>
More information about the use-livecode
mailing list