Mercurial > projects > dcrypt
comparison dcrypt/crypto/Hash.d @ 29:b9ba770b8f16
Second go at D2 compatibility. Changed the hexEncode method of the ByteConverter class and the hexDigest methods of various classes to return char[] instead of string.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Mon, 11 May 2009 01:39:19 -0400 |
parents | ad687db713a4 |
children | 21847420b1ac |
comparison
equal
deleted
inserted
replaced
28:ad687db713a4 | 29:b9ba770b8f16 |
---|---|
129 /** | 129 /** |
130 * Same as digest() but returns hash value in hex. | 130 * Same as digest() but returns hash value in hex. |
131 * | 131 * |
132 * Returns: Representation of the final hash value in hex. | 132 * Returns: Representation of the final hash value in hex. |
133 */ | 133 */ |
134 string hexDigest() | 134 char[] hexDigest() |
135 { | 135 { |
136 return ByteConverter.hexEncode(digest()); | 136 return ByteConverter.hexEncode(digest()); |
137 } | 137 } |
138 | 138 |
139 /** Reset hash to initial state. */ | 139 /** Reset hash to initial state. */ |