Signature
String runtime_safe_key(String key, String label = "runtime key")
Parameters
key : caller-provided key
label : diagnostic label used by native error handling
return value : stable SHA-1 key, or an empty string for empty input in wasm
Trims a runtime key and converts it to a stable SHA-1 identifier suitable for task/runtime file names.
Example
print(runtime_safe_key(" My Task Name "), "\n");
Output
D69015DF11759647B89DDCE39EAB10FD73DE5EF3