**This is an old revision of the document!**

Component: Data

This component is provided by the Data Card

Component name: data.
Callbacks:

  • crc32(data:string):string
    Computes CRC-32 hash of the data. Result is in binary format
  • decode64(data:string):string
    Applies base64 decoding to the data.
  • encode64(data:string):string
    Applies base64 encoding to the data.
  • md5(data:string):string
    Computes MD5 hash of the data. Result is in binary format
  • sha256(data:string):string
    Computes SHA2-256 hash of the data. Result is in binary format.
  • deflate(data:string):string
    Applies deflate compression to the data.
  • inflate(data:string):string
    Applies inflate decompression to the data.
  • getLimit():number
    The maximum size of data that can be passed to other functions of the card.