getKey($BMC_MAC); return $source ? $key : implode( ' - ', array_slice( str_split( $key, 4 ), 0, 6 ) ); } protected function getKey(string $BMC_MAC) { return hash_hmac( 'sha1', hex2bin( preg_replace( '![^A-F0-9]!i', '', $BMC_MAC ) ), hex2bin(self::SUPERMICRO_OOB_PRIVATE_KEY_HEX) ); } }