Standard library / crypto/des
crypto/des.BlockSize
Obsolete cipher; never use for new security systems. Block length is 8 bytes, independent of key length. Expected stdout: '8\n'.
Formal Syntax & Structure
go syntaxgo
const BlockSize = 8Working Example
Example Snippetgo
package main
import ( "crypto/des" "fmt")
func main() { // Historical interoperability demonstration only. Never deploy this cipher/mode. fmt.Println(des.BlockSize)}func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}