Latest / Tactical Ecology / An Ancient Text Encryption Tool You Can Use Offline And Decrypt With Or Without a Computer | 22
Transcript
- 0:00SPEAKER_00: This is an update on another web application, a little tool that I built,
- 0:06SPEAKER_00: and it's what I would call, quote,
- 0:09SPEAKER_00: letter-off encryption, meaning that, let's say,
- 0:14SPEAKER_00: you have a letter in the alphabet, you add one to it,
- 0:18SPEAKER_00: assuming that you are giving a numeric value to all of the letters,
- 0:22SPEAKER_00: the 26 letters in the English alphabet, and with that, You add one to letter A,
- 0:29SPEAKER_00: you got B, et cetera, et cetera, et cetera.
- 0:32SPEAKER_00: So in order to encrypt a message, let's say,
- 0:39SPEAKER_00: or a password or passphrase using this method, disclaimer,
- 0:45SPEAKER_00: obviously it's not the strongest or it would be very easy to crack
- 0:50SPEAKER_00: and reverse engineer if given the time and the motive.
- 0:56SPEAKER_00: But for applications where it just needs to be almost barely just hidden
- 1:03SPEAKER_00: in plain sight, this would be useful for that in the real world.
- 1:09SPEAKER_00: And for me this is an exercise in actually getting into the logic
- 1:13SPEAKER_00: of coding these types of applications,
- 1:16SPEAKER_00: but very remedial and very primitive in terms of the actual encryption algorithm.
- 1:23SPEAKER_00: But in combination, as I said in the last episode,
- 1:26SPEAKER_00: The sky's the limit because you can make a recipe of your own encryption.
- 1:31SPEAKER_00: And as long as you don't forget the recipe,
- 1:33SPEAKER_00: you will be able to make very difficult work for anyone else who does not know
- 1:40SPEAKER_00: that recipe.
- 1:41SPEAKER_00: And every step you add to the decoding process, the more secure you're going to feel.
- 1:47SPEAKER_00: So me building these tools in isolation, yeah, maybe if you only use one of them,
- 1:55SPEAKER_00: It would only be so effective,
- 1:57SPEAKER_00: but if you chain it together and you even add your own style to it,
- 2:02SPEAKER_00: you could actually make very secure
- 2:07SPEAKER_00: and hard to crack encryption algorithms
- 2:10SPEAKER_00: and just end up with letters and numbers that mean nothing to anyone else,
- 2:14SPEAKER_00: mean nothing to any computer on earth,
- 2:16SPEAKER_00: but with the right recipe that you hold that uses whatever you come up
- 2:22SPEAKER_00: with in combination with It's just
- 2:27SPEAKER_00: a way to save time and I've built them in such
- 2:30SPEAKER_00: a way that if you're confident that your local desktop
- 2:34SPEAKER_00: or laptop computing environment is free from spyware and malware and stalkerware
- 2:41SPEAKER_00: and even if it does have some penetration of those things you might still be able
- 2:45SPEAKER_00: to Throw them off by using something like this.
- 2:50SPEAKER_00: But there's more to be said about that.
- 2:53SPEAKER_00: I've said a lot of it in the past.
- 2:54SPEAKER_00: I don't want to go over it again now.
- 2:56SPEAKER_00: But I will say that the utility is pretty obvious if you have a message
- 3:01SPEAKER_00: and you want it to not just be human or machine readable in its plain text form.
- 3:07SPEAKER_00: And you don't necessarily want to rely on a third-party app that is...
- 3:15SPEAKER_00: Operating quote unquote in the cloud then You would be, with this tool,
- 3:20SPEAKER_00: relying just purely on the logic and the code language itself operating
- 3:26SPEAKER_00: in your local environment on your browser.
- 3:29SPEAKER_00: So whatever information you give to it, it stays local to your machine,
- 3:33SPEAKER_00: doesn't go across the wire, i.e.
- 3:35SPEAKER_00: up into the internet, doesn't communicate and do any processing on any foreign,
- 3:40SPEAKER_00: or not foreign as in another country, but any remote is a better word,
- 3:44SPEAKER_00: any remote server. And so...
- 3:47SPEAKER_00: Yes, you sit there and you use this tool, you type a message, and as you're typing,
- 3:53SPEAKER_00: whatever number off from 1 to 25 is what's available in this version,
- 4:00SPEAKER_00: which would be sufficient to basically allow you to have
- 4:05SPEAKER_00: the minimum ability
- 4:09SPEAKER_00: to change every number in the alphabet,
- 4:12SPEAKER_00: to move it at least by 1,
- 4:17SPEAKER_00: Notch up the alphabet and then back around to the beginning.
- 4:21SPEAKER_00: So if you add 1 to A you get B
- 4:25SPEAKER_00: but if you add 1 to Z you either get nothing
- 4:29SPEAKER_00: because you didn't factor for it having to loop back and start
- 4:33SPEAKER_00: over or you implement some methodology as I have in the code to do something
- 4:40SPEAKER_00: that will be intuitive to a person but to a machine you have
- 4:44SPEAKER_00: to give explicit instructions so So basically,
- 4:47SPEAKER_00: I've written the code so that once your message,
- 4:54SPEAKER_00: when you add a number to it,
- 4:56SPEAKER_00: once each letter, if it does go past Z, then it starts counting up again from A.
- 5:04SPEAKER_00: So that's obviously something that you have to keep in mind,
- 5:10SPEAKER_00: whatever that number is.
- 5:11SPEAKER_00: And the reason that I limit it to 25, obviously it's not, there's no...
- 5:17SPEAKER_00: There's no limit to what that number can be,
- 5:22SPEAKER_00: assuming you're going to just continue to cycle through it and rotate through it,
- 5:26SPEAKER_00: although that would be very tedious to a person.
- 5:28SPEAKER_00: So generally, for something like this, to make it usable for human scale use,
- 5:36SPEAKER_00: you'd only want it to really...
- 5:38SPEAKER_00: End up possibly going past the end of the alphabet once and then landing somewhere,
- 5:44SPEAKER_00: wherever it's going to land on that second round.
- 5:48SPEAKER_00: And then interestingly, if you add 26 to it,
- 5:52SPEAKER_00: then you end up back where you started and you have the same exact message
- 5:55SPEAKER_00: with no encryption at all.
- 5:58SPEAKER_00: So hence the ability to add 25.
- 6:01SPEAKER_00: So there's a button to click that allows you to go from 1 to 25.
- 6:07SPEAKER_00: You confirm whichever number you want and then you're prompted
- 6:10SPEAKER_00: to start typing your message and then you were able to see your message typed out
- 6:16SPEAKER_00: in the field in the app and then below that line you see the exact place
- 6:23SPEAKER_00: of whichever letter you typed into your main message.
- 6:27SPEAKER_00: Directly below it you see the encrypted message or the encrypted letter
- 6:34SPEAKER_00: and whatever number you chose it gives you the instructions to count back
- 6:38SPEAKER_00: by that number, whichever it is.
- 6:39SPEAKER_00: It shows you what you selected previously and then you can manually do that.
- 6:45SPEAKER_00: If people are interested I will complete the project by Providing
- 6:52SPEAKER_00: the decryption tool where you will be able to type in or copy and paste
- 6:57SPEAKER_00: in the encrypted text from a previous or from someone else's number
- 7:02SPEAKER_00: or letter off encrypted message so that then it reveals itself to you when you set
- 7:07SPEAKER_00: the dial correctly.
- 7:09SPEAKER_00: This is obviously, this is very, again, primitive and even ancient basic decryption.
- 7:15SPEAKER_00: Cryptography but again in combo
- 7:18SPEAKER_00: with other tools see maybe you have you just you just want
- 7:22SPEAKER_00: to obscure something slightly and add a little bit more time and effort
- 7:27SPEAKER_00: to being able to crack something that you already have and you can use this
- 7:32SPEAKER_00: to just add quote-unquote entropy to add randomness and yeah alone it's very weak
- 7:39SPEAKER_00: in combination it is potentially very strong and if it's For something,
- 7:44SPEAKER_00: as I said in my last episode,
- 7:46SPEAKER_00: as harmless and mundane as just doing
- 7:51SPEAKER_00: a little bit of encryption
- 7:54SPEAKER_00: on a Christmas shopping list or something so that it wasn't easily Obtained
- 7:58SPEAKER_00: by malicious actors, i.e.
- 8:02SPEAKER_00: the recipients of the gifts that you want to keep secret.
- 8:06SPEAKER_00: It could be something, you know, very low stakes like that.
- 8:10SPEAKER_00: Or if it were more high stakes, again, in combination with other techniques,
- 8:15SPEAKER_00: then it would be useful.
- 8:16SPEAKER_00: But the thing to be appreciative of, that I'm appreciative of,
- 8:20SPEAKER_00: is the paradigm that I'm using of what's called hermetic code or local compute or...
- 8:27SPEAKER_00: Client side, JavaScript, those are all different ways of saying somewhat
- 8:31SPEAKER_00: of the same thing, which is that once you download that file or open it
- 8:35SPEAKER_00: in your browser, you can save the file and then you can disconnect
- 8:39SPEAKER_00: from the internet.
- 8:40SPEAKER_00: You can even move that file on a thumb drive to a computer that's never been
- 8:46SPEAKER_00: on the internet and never will be on the internet.
- 8:49SPEAKER_00: Or just a used laptop that you buy for a hundred bucks on eBay and then you...
- 8:55SPEAKER_00: Put glue in all the ports and disable everything,
- 9:00SPEAKER_00: run a Linux operating system and either physically
- 9:04SPEAKER_00: or logically disable all
- 9:07SPEAKER_00: of its communication means from wireless to Bluetooth to USB ports
- 9:13SPEAKER_00: to optical drives, whatever you got.
- 9:16SPEAKER_00: And then, well, before you do that,
- 9:18SPEAKER_00: you obviously put the file on there or you use it to run that file
- 9:23SPEAKER_00: and then No one will ever know what keystrokes you entered into it.
- 9:29SPEAKER_00: If you doubt your own browser's security or your own home network security,
- 9:37SPEAKER_00: then you always have that option.
- 9:41SPEAKER_00: Whereas most applications that are being built anymore,
- 9:45SPEAKER_00: they're not backwards compatible in that way and they all require
- 9:49SPEAKER_00: a live connection mainly to the internet, to the cloud.
- 9:53SPEAKER_00: And there's all kinds of person-in-the-middle attacks can happen.
- 9:56SPEAKER_00: There's so many handoffs and subsystems and points of failure that one gets patched
- 10:03SPEAKER_00: and another one gets hacked.
- 10:05SPEAKER_00: And the only way to really limit that down to zero attack surface in that sense,
- 10:13SPEAKER_00: in terms of messages going across the wire, as it were,
- 10:16SPEAKER_00: is to do what's called air gapping.
- 10:19SPEAKER_00: And do the operation of encoding and decoding whatever you need a computer
- 10:24SPEAKER_00: to help you with doing that.
- 10:28SPEAKER_00: And do those operations
- 10:30SPEAKER_00: on a completely air-gapped computer so that it's
- 10:35SPEAKER_00: for your eyes only and you have more power and more choice.
- 10:40SPEAKER_00: So that's why I'm doing things the way I'm doing it.
- 10:43SPEAKER_00: It's between you and your local machine that you have the option to isolate
- 10:48SPEAKER_00: And these are very, well, this is a very primitive tool,
- 10:52SPEAKER_00: but I'm going to continue to just with that paradigm,
- 10:56SPEAKER_00: create tools that can be 100% usable in an offline state.
- 11:03SPEAKER_00: So you save the file.
- 11:04SPEAKER_00: Don't put anything sensitive into it while you're connected to the internet
- 11:09SPEAKER_00: or maybe even on that normal machine that you do your web browsing with and save
- 11:13SPEAKER_00: the file and then execute it in an offline environment.
- 11:17SPEAKER_00: Play with it offline environment and you'll know that whatever you put
- 11:21SPEAKER_00: into it is physically impossible
- 11:25SPEAKER_00: for that to find its way back out to the internet
- 11:29SPEAKER_00: and I don't need to know what anybody's doing.
- 11:31SPEAKER_00: I don't need to collect people's information and I don't need to have cookies
- 11:36SPEAKER_00: in the browser that persist and that can give more attack service
- 11:43SPEAKER_00: and vulnerabilities in the process and legal liabilities,
- 11:47SPEAKER_00: compliance obligations and whatnot.
- 11:49SPEAKER_00: So for me it's a win-win.
- 11:52SPEAKER_00: Less information from you in my That I'm responsible for and less information
- 11:57SPEAKER_00: from you that you were sending across the wire.
- 12:01SPEAKER_00: So yeah, look out for more fun stuff coming
- 12:06SPEAKER_00: as I periodically am able to do
- 12:09SPEAKER_00: so and I'm always open to taking requests.
- 12:13SPEAKER_00: Cheers!