Titanium.Codec

module
0.7.0
A module for dealing with encoding and decoding.

Functions

checksum Compute the checksum of the given String with the given checksum algorithm.
createZip Asynchronously write the contents of a directory to a zip file.
decodeBase64 Decode a Base64-encoded String.
decodeHexBinary Decode a hex binary-encoded String.
digestHMACToHex Digest a String into a hex binary HMAC. String data will first be converted to UTF-8 data.
digestToHex Encode some data using a digest algorithm to a hex binary String. String data will first be converted to UTF-8 data.
encodeBase64 Encode some data into Base64. String data will first be converted to UTF-8 data.
encodeHexBinary Encode some data into a hex binary String. String data will first be converted to UTF-8 data.

Properties

Type Name Description
Number ADLER32 Constant specifying the Adler-32 checksum algorithm.
String CRC32 Constant specifying the CRC32 checksum algorithm.
String MD2 Constant specifying the MD2 hash algorithm.
String MD4 Constant specifying the MD4 hash algorithm.
String MD5 Constant specifying the MD5 hash algorithm.
String SHA1 Constant specifying the SHA1 hash algorithm.