MD4: Difference between revisions

40 bytes removed ,  9 years ago
m
m (→‎{{header|Go}}: update sub-repo url)
Line 1:
{{task}} [[Category:Checksums]]
 
Find the MD4 message digest of a string of [[octet]]s. Use the ASCII encoded string “<tt>Rosetta Code</tt>” (without quotes). You may either call an MD4 library, or implement MD4 in your language.
Use the ASCII encoded string “<tt>Rosetta Code</tt>” (without quotes).
You may either call an MD4 library, or implement MD4 in your language.
 
'''MD4''' is an obsolete hash function that computes a 128-bit message digest that sometimes appears in obsolete protocols.
Line 495 ⟶ 497:
(md4 #"Rosetta Code")
</lang>
{{out}}
Output:
<pre>
<lang racket>
"a52bcfc6a0d0d300cdc5ddbfbefe478b"
</langpre>
 
=={{header|Ruby}}==
Line 579 ⟶ 581:
 
=={{header|Scala}}==
{{libheader|Scala}}
[[Category:Scala Implementations]]{{libheader|Scala}}<lang Scala>import org.bouncycastle.crypto.digests.MD4Digest
 
object RosettaRIPEMD160 extends App {
Anonymous user