Learn R Programming

virustotal (version 0.5.0)

sanitize_hash: 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)

Value

Sanitized hash or throws error if invalid

Arguments

hash

Character string representing a file hash

See Also

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