Documentation ¶
Overview ¶
Package des implements the Data Encryption Standard (DES) and the Triple Data Encryption Algorithm (TDEA) as defined in U.S. Federal Information Processing Standards Publication 46-3.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt decrypts the first block in src into dst. Dst and src may point at the same memory.
Example ¶
tt := desTests[0] dst, _ := des.Decrypt(tt.out, tt.key) fmt.Println(bytes.Compare(tt.in, dst))
Output: 0
func DecryptHex ¶
DecryptHex decrypts the first block in src into dst.
Example ¶
package main import ( "fmt" "gopkg.in/goyy/goyy.v0/util/crypto/des" ) func main() { dst, _ := des.DecryptHex("0595738e", "key") fmt.Println(dst) }
Output: goyy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.