diff --git a/.gitignore b/.gitignore index a901e11..4919768 100644 --- a/.gitignore +++ b/.gitignore @@ -33,8 +33,10 @@ dist content *.sublime-project -*.sublime-workspace +*-workspace +*_old* settings_local.py build .vscode var +0bin diff --git a/zerobin/routes.py b/zerobin/routes.py index bf2b7dd..fa43dd0 100644 --- a/zerobin/routes.py +++ b/zerobin/routes.py @@ -59,6 +59,11 @@ def index(): def faq(): return GLOBAL_CONTEXT +@app.route("/buy_bitcoin") +@view("buy_bitcoin") +def index(): + return GLOBAL_CONTEXT + @app.get(settings.ADMIN_URL) @app.post(settings.ADMIN_URL) diff --git a/zerobin/static/css/style.css b/zerobin/static/css/style.css index cf70ff6..3513397 100644 --- a/zerobin/static/css/style.css +++ b/zerobin/static/css/style.css @@ -8,6 +8,10 @@ border: 25px solid red; } +body { + color: #eee; +} + /* logo */ .brand { @@ -336,6 +340,22 @@ pre { /* Common css */ +#faq { + max-width: 80%; + margin: auto; +} + +#buy_bitcoin { + max-width: 80%; + margin: auto; +} + +#buy_bitcoin img{ + width: 85%; + display: block; + margin: 20px auto; +} + .caret { border-left: 6px solid transparent; border-right: 6px solid transparent; diff --git a/zerobin/static/img/binance1.png b/zerobin/static/img/binance1.png new file mode 100644 index 0000000..23fe7a5 Binary files /dev/null and b/zerobin/static/img/binance1.png differ diff --git a/zerobin/static/img/binance2.png b/zerobin/static/img/binance2.png new file mode 100644 index 0000000..d7f26b4 Binary files /dev/null and b/zerobin/static/img/binance2.png differ diff --git a/zerobin/static/img/binance3.png b/zerobin/static/img/binance3.png new file mode 100644 index 0000000..3587f9a Binary files /dev/null and b/zerobin/static/img/binance3.png differ diff --git a/zerobin/static/img/binance4.png b/zerobin/static/img/binance4.png new file mode 100644 index 0000000..005e6a3 Binary files /dev/null and b/zerobin/static/img/binance4.png differ diff --git a/zerobin/static/img/binance5.png b/zerobin/static/img/binance5.png new file mode 100644 index 0000000..6127ca8 Binary files /dev/null and b/zerobin/static/img/binance5.png differ diff --git a/zerobin/static/img/binance6.png b/zerobin/static/img/binance6.png new file mode 100644 index 0000000..8e19949 Binary files /dev/null and b/zerobin/static/img/binance6.png differ diff --git a/zerobin/views/buy_bitcoin.tpl b/zerobin/views/buy_bitcoin.tpl new file mode 100644 index 0000000..cd6fb1f --- /dev/null +++ b/zerobin/views/buy_bitcoin.tpl @@ -0,0 +1,85 @@ +
+

How To Buy Bitcoin?

+ +

+ +

What is Bitcoin?

+ +

Bitcoin was created by Satoshi Nakamoto, a pseudonymous person or team who outlined the technology in a 2008 white paper. It’s an appealingly simple concept: bitcoin is digital money that allows for secure peer-to-peer transactions on the internet. +

+

Unlike services like Venmo and PayPal, which rely on the traditional financial system for permission to transfer money and on existing debit/credit accounts, bitcoin is decentralized: any two people, anywhere in the world, can send bitcoin to each other without the involvement of a bank, government, or other institution. +

+ Every transaction involving Bitcoin is tracked on the blockchain, which is similar to a bank’s ledger, or log of customers’ funds going in and out of the bank. In simple terms, it’s a record of every transaction ever made using bitcoin. +

+

+ There will only ever be 21 million bitcoin. This is digital money that cannot be inflated or manipulated in any way. +

+

+ It isn’t necessary to buy an entire bitcoin: you can buy just a fraction of one if that’s all you want or need. +

+ + +

Why would I buy Bitcoin?

+ +

Bitcoin is in the news today more than ever. Thanks to skyrocketing prices and rollercoaster dips, everyone and their dogs are interested in learning how to buy and sell Bitcoin. As the most popular form of cryptocurrency, Bitcoin is now widely accepted around the world and has a growing number of applications. If you want to take advantage of that though, you first need to know how to buy Bitcoin and what to do with it when you have. +

+ +

How to buy Bitcoin ?

+ +

The best place to make your first Bitcoin purchase is on an exchange. There are a whole lot of exchanges out there, with varying performance. Some are less trustworthy than others, and some can be quite limited, so it’s crucial to pick the right exchange in the first place. We recommend using Binance, follow the simple guide bellow to buy your first Bitcoins. +

+ + +
1. Buy Bitcoin on Binance
+ +

We recommend buying Bitcoins on Binance because in terms of volume, it is considered to be the world's leading platform. + In 2019, Binance reports an average trading volume of $2.8 billion per day. This platform, launched on July 14, 2017 in Hong Kong, has the advantage of operating with technical assistance 24 hours a day, 7 days a week. Its CEO Zhao Changpeng, who has become a billionaire, was featured on the cover of the prestigious Forbes magazine in February 2018. +

+ +
2. How do I register with Binance to buy Bitcoin?
+ +

The first step before buying Bitcoin on Binance is to register. The user must first select the language in which they want to access the site, then enter a valid email address and finally choose a password. +

+ +

Click here to register an account with Binance now!

+ + Register Binance + +

For your security, the platform offers you to proceed to the 2FA, also called "Two Step Verification", which consists in logging in with your password and your phone using Google Authenticator. Both we and the platform recommend that you delay the purchase of your Bitcoins by opting for this extra layer of security. Binance Academy 2fa available here. +

+ + 2FA Binance + +

The second step is to verify your identity. Indeed, Binance is subject to KYC regulations as part of the fight against money laundering and terrorist financing. The platform will ask you whether or not you reside in China, before moving on to other personal information (surname, first name, gender, country of residence). +

+ + Verify identity Binance + +

Authentication is done by sending the number and a photocopy of both sides of your ID and a photo of you. On this photo, you must show the same ID and a newspaper (or other document) with the current date. +

+ + Verify identity Binance + +

The easiest way to get Bitcoin at Binance is to buy it by credit card. To do so, head over to the “Buy Crypto” section on the Binance toolbar, and choose the “Buy with Credit Card” option. +

+ + Verify identity Binance + +

Select your currency and BTC coin you wish to purchase and enter the amount before clicking "Buy BTC". All you will need to do is enter your bank details and the purchase will be completed.

+ + Verify identity Binance + +

Although it is mainly focused on the exchange of cryptomoney, Binance is now establishing itself as a very competitive platform for the purchase of cryptomoney by credit card. It is also reassuring because of its reputation, its activity and its ecosystem.

+ +

You're now a part of the future! Congrats!

+ +

+

Read more about Bitcoins +
Bitcoin.org +

+ + +
+ + +% rebase("base", settings=settings, pastes_count=pastes_count) diff --git a/zerobin/views/faq.tpl b/zerobin/views/faq.tpl index fb004ee..04d3bb9 100644 --- a/zerobin/views/faq.tpl +++ b/zerobin/views/faq.tpl @@ -2,9 +2,10 @@

FAQ

- - How does 0bin work? - - But JavaScript encryption is not secure! - - What if the server changes the JavaScript code? And what happens in the case of a MITM attack? - - How did the idea of 0bin emerge? - - How can I get 0bin? - -
+

+ +

How does 0bin work?

+

A random key is generated and used to encrypt the paste, thanks to the sjcl JavaScript library.

@@ -17,10 +18,10 @@ JavaScript will use it to decrypt the content sent by the server.

The browser never sends the hash to the server, so the latter does not receives the key at any time.

-
+ +

But JavaScript encryption is not secure!

+

No, it isn't.

The goal of 0bin is not to protect the user and their data (including, obviously, their secrets).

@@ -32,12 +33,12 @@

Remember that as an user, you should use 0bin in the same way as unencrypted and insecure pastebins - that is, with caution. The only difference with those is that if you decide to host a 0bin server, the encryption feature hopefully be used as a defense. - This is not proven, though! :-) + This is not proven, though! :-)

+ + +

What if the server changes the JavaScript code? And what happens in the case of a MITM attack?

-

Read above.

0bin is not built, and does not aim, to protect user data - but rather the host. If any user data is compromised, 0bin still provides the host with @@ -53,22 +54,20 @@

It would be unlikely for those softwares to fail you. Errors will nearly always come from your side - you ought to have a perfect operations security if you do not want your data to be leaked. Remember to use your common sense.

-
+ +

How did the idea of 0bin emerge?

+

0bin is based on sebsauvage's work. The project sprang as a reaction to the implementation of a moderation system on Pastebin, due to the significant amount of illegal content pasted on it, or that it linked to.

-
+ +

How can I get 0bin?

+

0bin is an open-source project, and the code is hosted on GitHub. You can either download a tarball or clone the repository.

-