Registry / crypto / golang-crypto

golang-crypto

JSON →
library0.53.0gogounverified

Subrepository of the Go standard library providing cryptographic packages.

go get github.com/golang/crypto
INSTALL
IMPORT
SIG · GOLANG-CRYPTO
G
golang-crypto
cryptogov0.53.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bcrypt
golang.org/x/crypto/bcrypt

Hash a password using bcrypt.

package main import ( "fmt" "golang.org/x/crypto/bcrypt" ) func main() { hash, _ := bcrypt.GenerateFromPassword([]byte("password"), bcrypt.DefaultCost) fmt.Println(string(hash)) }
Debug
Known issues
gotchaSome packages in this subrepo have been deprecated or moved to the standard library in newer Go versions.
fix
Check the Go release notes for the specific package you are using.
affects: >=1.0.0
Upgrade
Version history
0.53.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
golang-crypto — go get golang-crypto · libregistry