ll.HMAC

ll.HMAC(Key: string, Message: string, Algorithm: string) : string

Returns the base64-encoded hashed message authentication code (HMAC), of Message using PEM-formatted Key and digest Algorithm (md5, sha1, sha224, sha256, sha384, sha512).

Example

ll.HMAC('test', 'test', 'test')
{
  "def": "func",
  "desc": "Returns the base64-encoded hashed message authentication code (HMAC), of Message using PEM-formatted Key and digest Algorithm (md5, sha1, sha224, sha256, sha384, sha512).",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlHMAC",
  "name": "HMAC",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "string"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Key",
          "desc": "The PEM-formatted key for the hash digest.",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Message",
          "desc": "The message to be hashed.",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Algorithm",
          "desc": "The digest algorithm: md5, sha1, sha224, sha256, sha384, sha512.",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll