 Everybody this is Brian and welcome to the what are we at one hundred and fifth? Yeah one hundred fifth video tutorial with Cute and C plus plus and gooey programming. Sorry my cats distracting. I've had a heck of a day Neighbor his lawnmower put a rock through my window and he's being a total jerk about and I ended up calling the police I'm like really frustrated right now, but Anyways We are actually not gonna write some code, but I did want to revisit an old buddy of ours Remember the encryption library botan or botan Actually don't know how to pronounce that anyways go to Botan or botan dot random bit net and I've had quite a few of you call in and say hey Brian The tutorials you wrote 72 and 73 about encrypting a file. They don't work Well, the reason why is there's a new version of this and that new version is not compatible with the old version And I have to apologize if my voice sounds really hoarse I'm also getting over a call to make things that much better. So Here we go First off this is in Linux. I've got a lot of feedback from you guys So I have to give a shout out to does not give a damn That's an awesome name The user bend X term dash E works perfectly on my system So what I've done is I've gone through and I've I Shouldn't say that I've done it because I really haven't done a whole lot Actually, the Nokia Qt developers have done a lot of this And what they've done is they've gone out and they've gotten botan They have this new snazzy thing in the new build called the amalgamation build. I think it is Anyways, it takes all of the the botan libraries and compresses them down into one header and one source file As you can imagine, this is a humongous file and you can just see it's massive but what it does Excuse me is it allows you to Put all of the code into your application rather than having an external DLL Now when I first tried this, I thought oh man, this is awesome. I'm loving this I could not get it to work for the life of me I could not get this thing to work and what I was missing was this little bit of magic right here botan.pri The kind developers at Nokia have built this little bad boy and when I was on Windows It would not work. It just would not work. It's this little bit of magic right here that helps it work I guess there's a name collision. I won't get in the long gory details but there's a name collision between the Windows header and the botan header and On Linux, of course, it worked flawlessly. I know everybody out there who's using Linux is giving a big round of applause so What I've done is I've just made a simple wrapper for this You can hash a string get a hex hash, which just returns a hex and a small version of the hash Base64 encode and decode encrypt and decrypt a string and crypto file decrypt a file Set a password and set a salt. We've covered. I think all of these things in Our previous tutorial if you don't know what a salt is Assault is so that you can use the same password But by varying the salt the results are always different even though it's the same password It gets into cryptography It's a very complex subject. I have a certified ethical hacker and a CISSP and I've studied a lot about cryptography and There's still a lot that I don't understand and I make very simple mistakes too, but so I Am going to post this out on void realms.com and it's going to have just this project here And with a very simple, you know set passwords at salt. This is my secret and that's going to encrypt it and print it out And the first time you build this which I've already built it, but it takes an incredibly long time to build Simply because you're compiling the entire Button library. It's actually no longer a library source files. You're creating the object files. You know what I mean Too many cold meds. I'm sorry long day. So um, I Did want to just say hey, I wanted to keep up with the times Buttons evolved and our tutorial should too I'm not going to turn this into a full-blown tutorial because we've already beaten the subject up to death. So Anyways, this is Brian. Thanks for watching Hope you learned lots and had fun and have a good weekend