Skip to content

Modules.Crypto.EncodeDataDict

Simple object passed to Modules.Crypto.encodeData to encode data into a Titanium.Buffer.

Properties #

dest#

Type: Titanium.Buffer

The Titanium.Buffer to receive the encoded data

destPosition#

Type: Number

The position in dest to set the encoded data (optional, default is 0)

source#

Type: String, Titanium.Blob

The data to encode (see 'type' for supported object types)

type#

Type: String

The data type of the source object:

* TYPE_BASE64STRING - source is a base64 encoded string
* TYPE_HEXSTRING - source is a hexadecimal formatted string
* TYPE_BLOB - source is a Titanium.Blob object

Titanium SDK Documentation