rmd160

Description

Returns the RIPEMD-160 (RACE Integrity Primitives Evaluation Message Digest) message digest of the specified string, or an empty string if an error occurs. Used to ensure data integrity.

Syntax

rmd160 <string>

rmd160 <string>

  • Returns the RIPEMD-160 message digest of the specified string, or an empty string if an error occurs.

Examples

when HTTP_REQUEST {
   binary scan [rmd160 [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 }
   }
}