The FMPUtils.FMPData class is used to work with byte buffer.
class FMPData
Property | Description |
value |
Value. var value: Data { get } |
Method | Description |
encryptToFile(at:) | Byte buffer encryption to file in application local directory. It returns true if encryption was successful. func encryptToFile(at path: String) -> Bool Parameters:
|
Byte buffer encryption to file:
// Build an instance of the FMPUtils.FMPData class. For details see examples for FMPUtils.FMPData.Builder.
let data: FMPUtils.FMPData = FMPUtils().data.build()
// Encrypt byte buffer with specifying the path in the application local directory
let encryptToFileSuccess: Bool = data.encryptToFile(at: "path")
See. also: