getDefTextTuid function
Implementation
String getDefTextTuid(
String text
)
{
if ( text == '' )
{
return '';
}
else
{
var md5_hash = md5.convert( utf8.encode( text ) ).bytes;
return (
base64Url.encode( md5_hash )
.replaceAll( '+', '-' )
.replaceAll( '/', '_' )
.replaceAll( '=', '' )
);
}
}