...

Source file src/golang.org/x/crypto/md4/example_test.go

Documentation: golang.org/x/crypto/md4

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package md4_test
     6  
     7  import (
     8  	"fmt"
     9  	"io"
    10  
    11  	"golang.org/x/crypto/md4"
    12  )
    13  
    14  func ExampleNew() {
    15  	h := md4.New()
    16  	data := "These pretzels are making me thirsty."
    17  	io.WriteString(h, data)
    18  	fmt.Printf("%x", h.Sum(nil))
    19  	// Output: 48c4e365090b30a32f084c4888deceaa
    20  }
    21  

View as plain text