{"repo":"copiousfreetime/htauth","free":true,"listed":false,"github":"https://github.com/copiousfreetime/htauth","clone":"git clone https://github.com/copiousfreetime/htauth.git","description":"HTAuth is a pure ruby replacement for the Apache support programs 'htdigest' and 'htpasswd'","language":"Ruby","stars":12,"topics":["apache2","authentication","htdigest","ruby"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"HTAuth Homepage Github DESCRIPTION HTAuth provides an API and commandline tools for managing Apache/httpd style htpasswd and htdigest files. FEATURES HTAuth provides an API allowing direct manipulation of Apache/httpd style htdigest and htpasswd files. Supporting full programmatic manipulation and authentication of user credentials. HTAuth also includes drop-in, commandline compatible replacements for the Apache utilities htpasswd and htdigest with the respective htpasswd-ruby and htdigest-ruby commands. Additionally, support for the argon2 password hashing algorithm is provided for most platforms. SYNOPSIS API Usage HTAuth::DigestFile.open(\"some.htdigest\") do df df.add or update('someuser', 'myrealm', 'a password') df.delete('someolduser', 'myotherrealm') end HTAuth::PasswdFile.open(\"some.htpasswd\", HTAuth::File::CREATE) do pf pf.add('someuser', 'a password', 'md5') pf.add('someotheruser', 'a different password', 'sha1') end HTAuth::PasswdFile.open(\"some.htpasswd\", HTAuth::File::ALTER) do pf pf.update('someuser', 'a password', 'bcrypt') end HTAuth::PasswdFile.open(\"some.htpasswd\") do pf pf.authenticated?('someuser', 'a password') end htpasswd-ruby command line application Usage: htpasswd-ruby [-cimBdpsD] [-C cost] passwordfile username htpasswd-ruby -b[cmBdpsD] [-C cost] passwordfile username password htpasswd-ruby -n[imBdps] [-C cost] username htpasswd-ruby -nb[mBdps] [-C cost] username password --argon2 Force argon2 encryption of the password. -b, --batch Batch mode, get t","default_branch":null,"files":null,"tree":[],"storefront":"/r/copiousfreetime","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/copiousfreetime/htauth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}