Browse Source

show how to use stronger hash algos

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@773606 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
cd1b6501a5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      docs/manual/CoreTasks/checksum.html

+ 3
- 3
docs/manual/CoreTasks/checksum.html View File

@@ -76,7 +76,7 @@ or set the <tt>fileext</tt> attribute.
<td valign="top">algorithm</td> <td valign="top">algorithm</td>
<td valign="top">Specifies the algorithm to be used to <td valign="top">Specifies the algorithm to be used to
compute the checksum. Defaults to &quot;MD5&quot;. compute the checksum. Defaults to &quot;MD5&quot;.
Other popular algorithms like &quot;SHA&quot; may be used
Other popular algorithms like &quot;SHA&quot; or &quot;SHA-512&quot; may be used
as well. as well.
</td> </td>
<td valign="top" align="center">No</td> <td valign="top" align="center">No</td>
@@ -214,8 +214,8 @@ Generates a MD5 checksum for foo.bar, compares it against foo.bar.MD5 and sets
isMD5ok to either true or false, depending upon the result. isMD5ok to either true or false, depending upon the result.


<p><b>Example 5</b></p> <p><b>Example 5</b></p>
<blockquote><pre>&lt;checksum file=&quot;foo.bar&quot; algorithm=&quot;SHA&quot; fileext=&quot;asc&quot;/&gt;</pre></blockquote>
Generates a SHA checksum for foo.bar and stores the checksum in the destination file
<blockquote><pre>&lt;checksum file=&quot;foo.bar&quot; algorithm=&quot;SHA-512&quot; fileext=&quot;asc&quot;/&gt;</pre></blockquote>
Generates a SHA-512 checksum for foo.bar and stores the checksum in the destination file
foo.bar.asc. foo.bar.asc is overwritten only if foo.bar is newer than itself. foo.bar.asc. foo.bar.asc is overwritten only if foo.bar is newer than itself.


<p><b>Example 6</b></p> <p><b>Example 6</b></p>


Loading…
Cancel
Save