hash

deprecated
#include "/sys/tls.h"

string md5(mixed arg, varargs mixed* iterations)
{
    if (extern_call())
         set_this_object(previous_object());

    return hash(TLS_HASH_MD5, arg, iterations...);
}

string sha1(mixed arg, varargs mixed* iterations)
{
    if (extern_call())
         set_this_object(previous_object());

    return hash(TLS_HASH_SHA1, arg, iterations...);
}