dojox/encoding/digests/_base (version 1.10)

See the dojox/encoding/digests/_base reference documentation for more information.

Property Summary

  • outputTypesEnumeration for input and output encodings.

Method Summary

  • addWords(a,b) add a pair of words together with rollover
  • MD5(data,outputType) computes the digest of data, and returns the result according to type outputType
  • SHA1(data,outputType) Computes the SHA1 digest of the data, and returns the result according to output type.
  • stringToUtf8(input)
  • stringToWord(s) convert a string to a word array
  • wordToBase64(wa) convert an array of words to base64 encoding, should be more efficient than using dojox.encoding.base64
  • wordToHex(wa) convert an array of words to a hex tab
  • wordToString(wa) convert an array of words to a string

Properties

outputTypes

Enumeration for input and output encodings.

Methods

addWords(a,b)

add a pair of words together with rollover

Parameter Type Description
a word
b word
Returns:number
MD5(data,outputType)

computes the digest of data, and returns the result according to type outputType

Parameter Type Description
data string
outputType Object
Optional

An object with the following properties:

  • Base64
  • Hex
  • String
  • Raw
SHA1(data,outputType)

Computes the SHA1 digest of the data, and returns the result according to output type.

Parameter Type Description
data String
outputType Object
Optional

An object with the following properties:

  • Base64
  • Hex
  • String
  • Raw
stringToUtf8(input)
Parameter Type Description
input undefined
stringToWord(s)

convert a string to a word array

Parameter Type Description
s string
Returns:Array
wordToBase64(wa)

convert an array of words to base64 encoding, should be more efficient than using dojox.encoding.base64

Parameter Type Description
wa word[]
wordToHex(wa)

convert an array of words to a hex tab

Parameter Type Description
wa word[]
wordToString(wa)

convert an array of words to a string

Parameter Type Description
wa word[]
Error in the documentation? Can’t find what you are looking for? Let us know!