Example: /Encryption/Base 64/Encode Base64

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/Encryption/Base 64/Encode Base64


Required plugins for this example: MBS Encryption Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Encryption/Base 64/Encode Base64

This example is the version from Sun, 17th Mar 2012.

Project "Encode Base64.xojo_binary_project"
FileTypes
Filetype special/any
Filetype application/binary
End FileTypes
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Open() dim f as folderItem dim b as binaryStream dim s as string dim t,l as integer f=getopenFolderItem("special/any") b=f.openasbinaryFile(false) s=b.read(b.length) b.close l=lenb(s) t=ticks s=EncodeBase64MBS(s,76,chr(13)) t=ticks-t msgBox format(t/60,"0.0")+" Seconds which is "+format(l*60.0/1024.0/1024.0/t,"0.0")+" MegaBytes/s" f=getsaveFolderItem("application/binary",f.displayName+" base64") b=f.createBinaryFile("application/binary") b.write s b.close exception quit End EventHandler
End Class
End Project

See also:

The items on this page are in the following plugins: MBS Encryption Plugin.


💬 Ask a question or report a problem