Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Truffle Quick Start Guide

You're reading from  Truffle Quick Start Guide

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781789132540
Pages 170 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Nikhil Bhaskar Nikhil Bhaskar
Profile icon Nikhil Bhaskar

Security best practices

As you may recall, in previous chapters, we created a password.txt file in the root level of our project containing the password to unlock our coinbase account. This was stored in plain text. Of course, this is not the best way to store your passwords: out in the open, in plain text.

How do we make it more secure?

You can put the password.txt file in your .gitignore file. This way, it won't be tracked by Git's version control.

For all other sensitive phrases, passwords or keys, it is also best to store a hard copy of them. In other words, store them offline. Why? This way, your sensitive data is not vulnerable to hackers. If it is offline, only you have it. So, a good idea is to store your passwords on a sheet of paper.

Of course, the next big question is, what if you lose that sheet of paper? It is a single point of failure. Well, the answer...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}