https://github.com/techmdw/gotls
https://github.com/techmdw/gotls
go tls
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/techmdw/gotls
- Owner: TechMDW
- License: apache-2.0
- Created: 2024-01-16T16:07:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T16:12:21.000Z (over 2 years ago)
- Last Synced: 2025-10-01T18:38:23.182Z (8 months ago)
- Topics: go, tls
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotls
## Overview
`gotls` is a Go package that extends crypto/tls by offering a comprehensive range of cipher suites. It is designed for developers who require advanced TLS configurations and a broader selection of cipher suites in their Go applications.
All tls information is fetched from `https://www.iana.org/assignments/tls-parameters` (Internet Assigned Numbers Authority)
## Installation
To install `gotls`, use the following go get command: `go get github.com/TechMDW/gotls`
## Usage
Below is a basic example of how to use `gotls` in your Go application:
```go
package main
import (
"github.com/TechMDW/gotls"
"fmt"
)
func main() {
// Example: Fetching a cipher suite by name
{
cipherSuite := gotls.GetByName("TLS_RSA_WITH_AES_128_GCM_SHA256")
if cipherSuite != nil {
fmt.Println("Cipher Suite Name:", cipherSuite.Name)
fmt.Println("Cipher Suite Code:", cipherSuite.Code)
}
}
{
cipherSuite := gotls.Get(156)
if cipherSuite != nil {
fmt.Println("Cipher Suite Name:", cipherSuite.Name)
fmt.Println("Cipher Suite Code:", cipherSuite.Code)
}
}
}
```
## License
This project is licensed under the Apache License 2.0.