atom_reset_md5

Reset the current MD5 calculation.

see also: atom_base64/2 atom_codes/2 atom_compress/2 atom_concat/3 atom_encrypt/3 atom_final_md5/1 atom_integers/2 atom_length/2 atom_update_md5/1 char_code/2 md5_file/2 number_chars/2 number_codes/2 number_integers/2 sub_atom/5

Example
atom_update_md5('another'),
atom_reset_md5,
atom_final_md5(D).
D = '1B2M2Y8AsgTpgAmY7PhCfg=='
atom_update_md5('another'),
atom_update_md5('value'),
atom_reset_md5,
atom_final_md5(D).
D = '1B2M2Y8AsgTpgAmY7PhCfg=='

 

Exceptions  
argument Arg is not an atom nor a variable an type_error(atom, Arg) exception is thrown

 

 

info@trinc-prolog.com