Skip to content

Commit

Permalink
update license key placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Oct 19, 2023
1 parent 38b8df7 commit 7acc834
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ import (
func main() {
keygen.Account = "YOUR_KEYGEN_ACCOUNT_ID"
keygen.Product = "YOUR_KEYGEN_PRODUCT_ID"
keygen.LicenseKey = "KEYGEN_LICENSE_KEY"
keygen.LicenseKey = "A_KEYGEN_LICENSE_KEY"

fingerprint, err := machineid.ProtectedID(keygen.Product)
if err != nil {
Expand Down Expand Up @@ -213,7 +213,7 @@ func main() {
keygen.PublicKey = "YOUR_KEYGEN_PUBLIC_KEY"
keygen.Account = "YOUR_KEYGEN_ACCOUNT_ID"
keygen.Product = "YOUR_KEYGEN_PRODUCT_ID"
keygen.LicenseKey = "KEYGEN_LICENSE_KEY"
keygen.LicenseKey = "A_KEYGEN_LICENSE_KEY"

fmt.Printf("Current version: %s\n", CurrentVersion)
fmt.Println("Checking for upgrades...")
Expand Down Expand Up @@ -264,7 +264,7 @@ import (
func main() {
keygen.Account = "YOUR_KEYGEN_ACCOUNT_ID"
keygen.Product = "YOUR_KEYGEN_PRODUCT_ID"
keygen.LicenseKey = "KEYGEN_LICENSE_KEY"
keygen.LicenseKey = "A_KEYGEN_LICENSE_KEY"

// The current device's fingerprint (could be e.g. MAC, mobo ID, GUID, etc.)
fingerprint := uuid.New().String()
Expand Down Expand Up @@ -361,7 +361,7 @@ func main() {
}

// Use the license key to decrypt the license file
dataset, err := lic.Decrypt("KEYGEN_LICENSE_KEY")
dataset, err := lic.Decrypt("A_KEYGEN_LICENSE_KEY")
switch {
case err == keygen.ErrSystemClockUnsynced:
panic("system clock tampering detected!")
Expand Down Expand Up @@ -560,7 +560,7 @@ func validate() (*keygen.License, error) {
func main() {
keygen.Account = "YOUR_KEYGEN_ACCOUNT_ID"
keygen.Product = "YOUR_KEYGEN_PRODUCT_ID"
keygen.LicenseKey = "KEYGEN_LICENSE_KEY"
keygen.LicenseKey = "A_KEYGEN_LICENSE_KEY"

license, err := validate()
if err != nil {
Expand Down Expand Up @@ -597,7 +597,7 @@ func main() {
keygen.HTTPClient = c.StandardClient()
keygen.Account = "YOUR_KEYGEN_ACCOUNT_ID"
keygen.Product = "YOUR_KEYGEN_PRODUCT_ID"
keygen.LicenseKey = "KEYGEN_LICENSE_KEY"
keygen.LicenseKey = "A_KEYGEN_LICENSE_KEY"

// Use SDK as you would normally
keygen.Validate()
Expand Down

0 comments on commit 7acc834

Please sign in to comment.