bcrypt

Table of Contents

leo@xxx:~$ htpasswd -nbBC 10 USER topsecret
USER:$2y$10$vDtCxgJ4DIZ1itAAq6NDkedmaDFHlPdlpLY.EiEa3QBXHnH0oLatW

https://stackoverflow.com/questions/47580240/bcrypt-for-bash-shell

Backlinks

(Caddyfile)

localhost:2015 {

    basicauth * {
        mydavusername $20$10$KqdMf897j0iBzhrV1w3OCeu4QbBxh88wCpRol32CrmULlH6/8v3qu
    }

    root * /home/myusername/org/webdav/

    @get method GET
    route {
        file_server @get {
            hide .git .gitignore .stfolder .stversions
            browse
        }

        webdav
    }
}
  • localhost:2015 - where this service can be found. type this in your browser address bar and you can access the webdav server
  • mydavusername $20$10.. - you username and password hash to access the webdav server. the hash is generated with bcrypt
  • root * /home... - where the webdav’s root would be
  • other parts can be just copy and pasted.

Author: Linfeng He

Created: 2024-04-03 Wed 20:16