跳转至

SHA

SHA家族

  • SHA1
  • SHA2
  • SHA3
import hashlib

result = hashlib.sha256("Hello Cryptography".encode()).hexdigest()
print(result)
npm install
npm install js-sha256
import { sha256 } from 'js-sha256';

var hash = sha256.create();
hash.update("Hello Cryptography");
hash.hex();
package main

import (
    "crypto/sha256"
    "fmt"
)

func main() {
    h := sha256.New()
    h.Write([]byte("Hello Cryptography"))
    fmt.Printf("%x", h.Sum(nil))
}