Registry / crypto / forgoer-openssl

forgoer-openssl

JSON →
library1.20.0gogounverified

Package openssl provides Go bindings for OpenSSL cryptographic operations.

go get github.com/forgoer/openssl
INSTALL
IMPORT
SIG · FORGOER-OPENSSL
F
forgoer-openssl
cryptogov1.20.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.

openssl
github.com/forgoer/openssl

Encrypt data using AES-ECB with PKCS7 padding.

package main import ( "fmt" "github.com/forgoer/openssl" ) func main() { data := []byte("hello") key := []byte("1234567890123456") encrypted, _ := openssl.AesECBEncrypt(data, key, openssl.PKCS7_PADDING) fmt.Println(encrypted) }
Debug
Known issues
gotchaECB mode is not semantically secure; avoid for sensitive data.
fix
Use a more secure mode like GCM or CBC with HMAC.
affects: all
Upgrade
Version history
1.20.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
forgoer-openssl — go get forgoer-openssl · libregistry