FMPUtils.FMPData

Description

The FMPUtils.FMPData class is used to work with byte buffer.

class FMPData

Properties

Property Description

value

Value.
var value: Data { get }

Methods

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:

  • path. The path to the file in the application local directory relative to the Documents folder.

Example

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:

FMPWrapper Framework | Classes