{"id":16173433,"url":"https://github.com/robdwaller/wordpress-salts-generator","last_synced_at":"2025-03-19T00:30:49.748Z","repository":{"id":62533712,"uuid":"127910064","full_name":"RobDWaller/wordpress-salts-generator","owner":"RobDWaller","description":"A key and salts generator for WordPress that works with both wp-config and .env files.","archived":false,"fork":false,"pushed_at":"2020-05-09T20:57:04.000Z","size":29,"stargazers_count":8,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T13:23:15.185Z","etag":null,"topics":["cli","composer","composer-package","keys","salts","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobDWaller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-03T13:09:27.000Z","updated_at":"2024-08-12T07:53:44.000Z","dependencies_parsed_at":"2022-11-02T15:02:23.146Z","dependency_job_id":null,"html_url":"https://github.com/RobDWaller/wordpress-salts-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobDWaller%2Fwordpress-salts-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobDWaller%2Fwordpress-salts-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobDWaller%2Fwordpress-salts-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobDWaller%2Fwordpress-salts-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobDWaller","download_url":"https://codeload.github.com/RobDWaller/wordpress-salts-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955805,"owners_count":20374373,"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":["cli","composer","composer-package","keys","salts","wordpress"],"created_at":"2024-10-10T04:08:44.655Z","updated_at":"2025-03-19T00:30:49.376Z","avatar_url":"https://github.com/RobDWaller.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Salts Generator\n\nA key and salts generator for WordPress that works with both wp-config and .env files.\n\n- This library is for use with a composer setup of WordPress.\n- Keys and salts are generated via the command line.\n\n## Installation\n\nTo install this library either use the composer require command.\n\n```\ncomposer require rbdwllr/wordpress-salts-generator 0.1.*\n```\n\nOr add it straight to your `composer.json` file and run `composer update`.\n\n```\nrequire: {\n    \"rbdwllr/wordpress-salts-generator\": \"0.1.*\"\n}\n```\n\n## Commands\n\nTheir are two simple commands available for generating the keys and salts.\n\n```\n// Generates traditional WordPress 'define' keys and salts.\nvendor/bin/wpsalts traditional\n\n// Generates keys and salts that can be used in a .env file.\nvendor/bin/wpsalts dotenv\n```\n\nIf you don't add a command the `vendor/bin/wpsalts` command it will output the traditional WordPress salts and keys.\n\n### Append to File\n\nIf you would like to append the keys directly to the end of an .env file you can use the `--clean` flag as follows.\n\n```\nvendor/bin/wpsalts dotenv --clean \u003e\u003e .env\n```\n\nThe clean flag removes any messaging and formatting around the output, and the `\u003e\u003e` operator appends the output to the end of the .env file on a new line.\n\n## Output Examples\n\n### Traditional WordPress\n\n```\nCopy and paste these keys and salts into your wp-config.php file.\n\ndefine('AUTH_KEY', 'dva\\uhm\"cDc\u003c$U5E\u003e )euW\u003cUzK{ WQ7tt;j:paBPyY16\u003c\u0026f;b|n]|pj9%|=xRA;'');\ndefine('SECURE_AUTH_KEY', 'Q)hZ.Hp]meJI.X-:s+Cp2o4:wafkbxO}mfyp??e\"\u003ebqHRC)|o(sB)9G-n4O2VJ;!');\ndefine('LOGGED_IN_KEY', 'kOq )c\"=0\u003eE} c;?PwD;lt0(N9N\u003e%,#OS\"]3\u003e,!@[\u0026]]i\u003eG90ucaBxz2\\hh]}I@Z');\ndefine('NONCE_KEY', 't\u003eZZepdu/(8\u003e4|3k5covc7R'\":*rhyY\u003e{eZjK4HB:@i5l/d8XTTc(P.v(H|Q/mg4');\ndefine('AUTH_SALT', '{B\u003eCWa$zjM+KN(,(-4yD(pFfdeF 07mPp1xOMkL bDm!X\u003e}p){~(J4\\~-AO+0-ZV');\ndefine('SECURE_AUTH_SALT', 'lr'_2T^{O/\u003cLK v\u003c:fa^Sw-i]5\\t yt.:I#?kSa(l 8A7H%/!E(c1dzX(r[}3YpB');\ndefine('LOGGED_IN_SALT', '%^]P]dVVJ\"Pgd[tW-.}mMvx..yRW+99E7yCVb:PYA-k1[2W0LHM^fG'XtPsuGF\"y');\ndefine('NONCE_SALT', ' 6quTRjx9eQ\"6:$QrV]!q\"8%38#NGh\u003eODwU:tw8\u0026nU^Ci}_[`ItiWK]e|n t\u003cf /');\n```\n\n### DotEnv\n\n```\nCopy and paste these keys and salts into your .env file.\n\nAUTH_KEY = 'EXOxcC~nqA{m{B?pw$$G^kIll\u0026j@7K~\\+rGaD!84\u003eJ^C2H.w\"U\\Ut\u003c55\\\u0026W[ IdS'\nSECURE_AUTH_KEY = 'z =Q9?I),/%7`E0jEM(#5VV'S NdLFYL\u003ce2-jSyQoV*Jzxbs3`oIs;pZHcEH\"2L\u0026'\nLOGGED_IN_KEY = 'H #u*_!('^[s\u003e=4?$.s3?yo9KJk8Lv-Dn O6,ZCE\u003eaFh-5KaXbBzV9#^t9rJuTgt'\nNONCE_KEY = 'bdt.I)jh6Nz/e,|S-QepePTSd@93E$vk%oX1yd\"A,DNExX+v\u0026;\u003e2\u003e^Ni$G%l\u0026YC9'\nAUTH_SALT = '$81GB@i@ 0qW@~\u003c\u003cM$j`\u003eyxQ )Q56PyJ6ukOnH]@_:}x-/BAm-Io]=CyJU^T(|7%'\nSECURE_AUTH_SALT = '/k4O1L)q@7wJ^~;b`\"U6X9s,~7iRAc8v-ypMOM|X.yN=0\"gVh|x~$V +Mw(eZ33T'\nLOGGED_IN_SALT = '_o_jpvW#iq}l-'Kc\u0026vU}Tht\\w,-:462z8=;!x3 =1NyD\u0026[\u003ek^EAZjm(F#=X+T(G''\nNONCE_SALT = '.e1j7;9aWlqoBRdLEe?Vh9{m8V7:\u003cPlAFa@,,(2o5En)^%x*[i\\6sq[=*b#+-A0='\n```\n\n## Author\n\nRob Waller [@RobDWaller](https://twitter.com/RobDWaller)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobdwaller%2Fwordpress-salts-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobdwaller%2Fwordpress-salts-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobdwaller%2Fwordpress-salts-generator/lists"}