Skip to content

Instantly share code, notes, and snippets.

@bobrik

bobrik/burn.go Secret

Created November 8, 2019 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobrik/cf022ff6950d09032fa13a984e2272ed to your computer and use it in GitHub Desktop.
Save bobrik/cf022ff6950d09032fa13a984e2272ed to your computer and use it in GitHub Desktop.
package main
import (
"crypto/sha512"
"time"
)
func main() {
burn(time.Second)
}
func burn(duration time.Duration) {
s := time.Now()
for {
sum := sha512.New()
sum.Write([]byte("banana"))
sum.Sum([]byte{})
if time.Since(s) > duration {
break
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment