You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
package main
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"crypto/sha256"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
//s := "Hello World"
|
|
s := "In the heart of a bustling city, a small, unassuming cafe stood tucked between towering skyscrapers. Its walls, a mosaic of colorful tiles, held stories of a thousand meetings, whispered secrets, and shared laughter. Inside, the aroma of freshly ground coffee mingled with the scent of old books, creating an ambiance of warmth and nostalgia. Each table bore the marks of countless cups and conversations, and the worn-out sofa in the corner was a silent testament to many a weary traveler finding solace in its embrace. Outside, the city rushed by in a blur of lights and sounds, but within the cafe's walls, time seemed to slow down, inviting passersby to pause and savor the small joys of life ~ChatGPT"
|
|
|
|
sha256 := sha256.Sum256([]byte(s))
|
|
md5 := md5.Sum([]byte(s))
|
|
|
|
fmt.Println()
|
|
fmt.Println(s)
|
|
|
|
fmt.Println()
|
|
fmt.Printf("%x", sha256)
|
|
fmt.Println()
|
|
|
|
fmt.Println()
|
|
fmt.Printf("%x", md5)
|
|
|
|
fmt.Println()
|
|
fmt.Println()
|
|
|
|
}
|
|
|