Here is a basic list of the functions. Please see the .GMK for more information:
Cypher_Init(); Initiates the Engine. Make sure to use this before calling any other function. Cypher_Open(Fname,Password); Open an archive. If you are creating a new archive, set both arguments as an empty string. Cypher_AddFile(PkgID,Fname,Password,InternalFname); Adds a file to an archive. Cypher_Write(PkgID,Fname,Password); Writes the archive Cypher_Extract(PkgID,File,Password,ExtractLocation); Extracts a File Cypher_Close(PkgID); Closes a package and frees memory. Cypher_FileCount(PkgID); Gets the number of files in a package Cypher_GetFname(PkgID, FileID); Gets a filename of a file in the package Cypher_RemoveFile(PkgID,Fname); Deletes a file from a package
I included a well commented example in the GMK. I hope the API is easy enough to understand!
Please tell me your suggestions/comments!
Edit: Performance test!
1000 Sprites with each sprite encrypted and the whole package encrypted: 12 seconds (Packaging)
Edited by Revel, 25 June 2009 - 03:45 PM.