{"id":19639451,"url":"https://github.com/iamcryptoki/wordsalt","last_synced_at":"2026-04-16T18:36:00.268Z","repository":{"id":261762856,"uuid":"884757977","full_name":"iamcryptoki/wordsalt","owner":"iamcryptoki","description":"A simple Go module to generate strong, random security keys for WordPress.","archived":false,"fork":false,"pushed_at":"2024-11-08T15:34:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T22:29:35.056Z","etag":null,"topics":["go","keys","salt","security","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamcryptoki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-07T10:37:14.000Z","updated_at":"2024-11-08T15:34:42.000Z","dependencies_parsed_at":"2025-02-26T22:37:17.798Z","dependency_job_id":null,"html_url":"https://github.com/iamcryptoki/wordsalt","commit_stats":null,"previous_names":["iamcryptoki/wordsalt"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/iamcryptoki/wordsalt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcryptoki%2Fwordsalt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcryptoki%2Fwordsalt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcryptoki%2Fwordsalt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcryptoki%2Fwordsalt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamcryptoki","download_url":"https://codeload.github.com/iamcryptoki/wordsalt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcryptoki%2Fwordsalt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311871,"owners_count":23745161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","keys","salt","security","wordpress"],"created_at":"2024-11-11T13:01:02.502Z","updated_at":"2025-10-07T04:15:00.243Z","avatar_url":"https://github.com/iamcryptoki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordSalt\n\nThis Go module provides a simple function to generate random security keys for WordPress installations. It generates all 8 keys defined in `wp-config.php`:\n\n- `AUTH_KEY`\n- `SECURE_AUTH_KEY`\n- `LOGGED_IN_KEY`\n- `NONCE_KEY`\n- `AUTH_SALT`\n- `SECURE_AUTH_SALT`\n- `LOGGED_IN_SALT`\n- `NONCE_SALT`\n\n## Installation\n\n```sh\ngo install github.com/iamcryptoki/wordsalt@v1.0.1\n```\n\n## Usage\n\n### Command-line\n\nSimply run `wordsalt` in your terminal. The output will be the 8 WordPress security keys, each with a define() statement ready to be copied into your `wp-config.php` file.\n\nExample output:\n\n```php\ndefine('AUTH_KEY', 'pUR_8n#vDLgRLn+lA\u003cj\u003e0CK$5mF^US}\u003e,99Tl  eb$)ASF^Ev1P7dMX)X2KJ-t$[');\ndefine('SECURE_AUTH_KEY', 'UrLx|hiUjz76|sH69 f8|C^nbhQ8kC{VyMU\u003e\u0026NX8fI6K\u003cy49I`2|znBD(b9R\u003evg9');\ndefine('LOGGED_IN_KEY', 'J4{g.Qj.~n0:_)-ie5VW83Vo$5qHy+mt2kwCff\u0026jLZfl{NPoKqc-%@+Q[5:ZaQE8');\ndefine('NONCE_KEY', 'v\u0026vKo)IG|K`*Vj{Z609C%GW$k`z{G0/Ri;I/A@~Kv-RT!+TIRMKQ-vei;n zpH\u0026h');\ndefine('AUTH_SALT', ')E5u#-j,VhE%obE}~YNDTE)%~C8^$t.2X ^2KubHw.\u003cH[VKC[0{Modn=c\u0026$g%q*T');\ndefine('SECURE_AUTH_SALT', 'hp[QTxp3I PRr+!DdRij5-W_\u003c H;~H]_bYu5skGn9{f2S6ZknM1h |]yS{a^t\u003ed`');\ndefine('LOGGED_IN_SALT', 'x6c(`Q(\u0026g_\u003eb7pa2fue$M$#1*]Pe[*}ETBpqr8aRUA/Pe$=;zO;L,vXZQU[):5Y?');\ndefine('NONCE_SALT', 'W}ey@Fn0TG~f.w55$8@Qa\u003cf_t|GT/$*Ykh2e=?r@;[2X;G*wW.2)D`62.*(||\u0026}l');\n```\n\n### External module\n\nImport the module into your Go project:\n\n```go\nimport \"github.com/iamcryptoki/wordsalt\"\n```\n\nThen, call the `GenerateWordPressKeys()` function to generate a map of key names and values:\n\n```go\nkeys, err := wordsalt.GenerateWordPressKeys()\nif err != nil {\n    fmt.Println(\"Error generating keys:\", err)\n}\n\nfor name, key := range keys {\n    fmt.Printf(\"define('%s', '%s');\\n\", name, key)\n}\n```\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcryptoki%2Fwordsalt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamcryptoki%2Fwordsalt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcryptoki%2Fwordsalt/lists"}