Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to encrypt a file with Blowfish?

Answer: You can use code like this:
Example
Var fi as FolderItem = SpecialFolder.Desktop.Child("test.xojo_binary_project")
Var fo as FolderItem = SpecialFolder.Desktop.Child("test.encrypted")

// read input
Var bi as BinaryStream = BinaryStream.Open(fi)
Var si as string = bi.Read(bi.Length)
bi.Close

// encrypt
Var so as string = BlowfishMBS.Encrypt("MyKey",si)

// write output
Var bo as BinaryStream = BinaryStream.Create(fo)
bo.Write so
bo.Close

Of course you can decrypt same way, just use Decrypt function and of course swap files.


The biggest plugin in space...