sha384

Description

Returns the Secure Hash Algorithm (SHA2) 384-bit message digest of the specified string. If an error occurs, an empty string is returned. Used to ensure data integrity.

Syntax

sha384 <string>

sha384 <string>

  • Returns the Secure Hash Algorithm version 2.0 (SHA2) message digest of the specified string using 384 bit digest length. If an error occurs, an empty string is returned.

Examples

when HTTP_REQUEST {
   binary scan [sha384 [HTTP::host]] w1 key

   set key [expr {$key & 1}]
   switch $key {
     0 { pool my_pool member 1.2.3.4:80 }
     1 { pool my_pool member 5.6.7.8:80 }
   }
}