Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 325 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 325 Bytes

PKCS5 for Go

Public Key Cryptography Standards #5

go get github.com/trylife/go-PKCS5
import "github.com/trylife/go-PKCS5"

padded := PKCS5.Padding([]byte("hi"), 8)
original := PKCS5.RemovePadding(padded)
fmt.Println(padded)
fmt.Println(original)
// Output:
// [104 105 6 6 6 6 6 6]
// [104 105]