Skip to content

Commit

Permalink
switch to sha1
Browse files Browse the repository at this point in the history
  • Loading branch information
kung-foo committed Apr 19, 2015
1 parent 0455c83 commit dedc780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"bufio"
"crypto/sha256"
"crypto/sha1"
"crypto/x509"
"encoding/json"
"errors"
Expand Down Expand Up @@ -166,7 +166,7 @@ func (s *streamHandler) Run() error {
src, dst := s.netflow.Endpoints()
for i, cert := range certs {

h := sha256.New()
h := sha1.New()
h.Write(cert.Raw)
digest := hex.EncodeToString(h.Sum(nil))

Expand Down

0 comments on commit dedc780

Please sign in to comment.