diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4fcedfa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +pages: + stage: deploy + script: + - mkdir .public + - cp -r * .public + - mv .public public + artifacts: + paths: + - public + only: + - master diff --git a/2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b/index.html b/2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b/index.html new file mode 100644 index 0000000..931a8ec --- /dev/null +++ b/2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b/index.html @@ -0,0 +1,5 @@ + +“All things being equal, the simplest solution tends to be the best one." +

+William of Ockham + diff --git a/README.md b/README.md index acacb4f..2425835 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +### Updates + +The original version of this is on [github](https://github.com/matteobrusa/Password-protection-for-static-pages) + +I cleaned up the code removing jQuery and updating the crypto lib to use SHA256. +I also added a robots.txt file. + # Password protection for static pages This simple HTML document helps you protecting static pages or whole websites with no server configuration required: you can now use Dropbox, Amazon S3 or any generic hosting service to host a private, password protected site. @@ -17,7 +24,7 @@ The final structure will be: ``` - index.html - background.jpg -- this-is-a-hash <-- the SHA1 hash of your password +- this-is-a-hash <-- the SHA256 hash of your password \ - index.html <-- your original index document ``` diff --git a/e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4/index.html b/e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4/index.html deleted file mode 100644 index 6120ee1..0000000 --- a/e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4/index.html +++ /dev/null @@ -1,5 +0,0 @@ - -There are two rules for success: 1) Never tell everything you know. -

-― Roger H. Lincoln - diff --git a/grunge_patterns.jpg b/grunge_patterns.jpg deleted file mode 100644 index c416c02..0000000 Binary files a/grunge_patterns.jpg and /dev/null differ diff --git a/index.html b/index.html index 6ff4303..e4e8c0b 100644 --- a/index.html +++ b/index.html @@ -1,134 +1,51 @@ - - - - - - - - - - - - -