View source code
							
							
						
								Display the source code in std/digest/ripemd.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Struct std.digest.ripemd.RIPEMD160
Template API RIPEMD160 implementation.
 See std for differences between template and OOP API.
						
				struct RIPEMD160
				;
						
					
				Methods
| Name | Description | 
|---|---|
| finish() | Returns the finished RIPEMD160 hash. This also calls startto
 reset the internal state. | 
| put(data) | Use this to feed the digest with data.
 Also implements the isOutputRangeinterface forubyteandconst(ubyte)[]. | 
| start() | Used to (re)initialize the RIPEMD160 digest. | 
Example
//Simple example, hashing a string using ripemd160Of helper function
ubyte[20] hash = ripemd160Of("abc");
//Let's get a hash string
writeln(toHexString(hash)); // "8EB208F7E05D987A9B044A8E98C6B087F15A0BFC"
Example
//Using the basic API
RIPEMD160 hash;
hashExample
//Let's use the template features:
void doSomething(T)(ref T hash)
if (isDigest!T)
{
    hashExample
//Simple example
RIPEMD160 hash;
hashAuthors
Kai Nacke 
 The algorithm was designed by Hans Dobbertin, Antoon Bosselaers, and Bart Preneel. 
 The D implementation is a direct translation of the ANSI C implementation by Antoon Bosselaers.
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.