sanitize_hash: Sanitize hash input

View source: R/security.R

sanitize_hashR Documentation

Sanitize hash input

Description

Validates hash inputs to ensure they conform to expected formats (MD5, SHA1, SHA256) and contain only valid hexadecimal characters.

Usage

sanitize_hash(hash)

Arguments

hash

Character string representing a file hash

Value

Sanitized hash or throws error if invalid

See Also

Other security: is_api_key_configured(), sanitize_domain(), sanitize_file_path(), sanitize_ip(), sanitize_url(), security-utilities


virustotal documentation built on Aug. 20, 2026, 5:07 p.m.