Trabla: Go & php: Go analog of md5 Php function
Solving:
1. PHP code:
<?php
$password = "trololo";
echo md5($password);
?>
Result: 37f62f1363b04df4370753037853fe88
2. GO code
package main
import (
"fmt";
"crypto/md5"
)
func main() {
password := []byte("trololo")
fmt.Printf("%x", md5.Sum( password ))
}
Result: 37f62f1363b04df4370753037853fe88
No comments:
Post a Comment