File:  [parser3project] / parser3 / tests / 141.html
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Mon Sep 30 19:58:24 2013 UTC (12 years, 8 months ago) by moko
Branches: MAIN
CVS tags: release_3_4_5, release_3_4_4, release_3_4_3, HEAD
md5 tainting test added

$uuid[^math:uuid[]]^uuid.length[]<br />
$uid64[^math:uid64[]]^uid64.length[]<br />

$long[very-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-key]

^math:md5[123]<br />
^math:digest[md5;123]<br />
^math:digest[md5;123; $.hmac[pwd] ]<br />
^math:digest[md5;123; $.hmac[$long] $.format[base64] ]<br />

^math:sha1[123]<br />
^math:digest[sha1;123]<br />
^math:digest[sha1;123; $.hmac[pwd] ]<br />
^math:digest[sha1;123; $.hmac[$long] $.format[base64] ]<br />

^math:digest[sha256;123; $.hmac[pwd] ]<br />
^math:digest[sha256;123; $.hmac[$long] $.format[base64] ]<br />

^math:digest[sha512;123]<br />
^math:digest[sha512;123; $.hmac[pwd] ]<br />
^math:digest[sha512;123; $.hmac[$long$long] $.format[base64] ]<br />

$paf[^file::load[binary;019paf2001.gif]]

^math:digest[md5;$paf]<br />
^math:digest[sha256;$paf]<br />

$s[{ "name": "^taint[json;va"lue]" }]
$f[^file::create[$s]]

^math:md5[$s] = ^math:md5[$f.text]<br />
^math:digest[sha1;$s] = ^math:digest[sha1;$f.text]<br />

E-mail: