0
I have a USB flash drive and would like to base-64 (or similar) encode all the files/folders (recursively) under a certain parent directory on it; let's call it "toEncode".
It would be preferable to be able to encode and decode these files whenever I want: decode the toEncode directory, modify any part of its child folders/files, and then re-encode it. I'm on Ubuntu 12.04 desktop. Ideas?
1Encoding is not the same as encrypting. The former translates data from one representation to a smaller code set (for example Unicode to ASCII) and the latter translates (generally) into a binary form unreadable without some secret code. – l0b0 – 2014-01-20T21:54:24.350
Thanks but I know the difference and do mean encode! – user3178622 – 2014-01-20T22:19:12.020
1If so, what is the use case? I can't think of any reason why you'd want to do this, but maybe you have one? – l0b0 – 2014-01-20T22:21:45.920
The use case is irrelevant backstory that shouldn't be used to clutter up the SU databases. I'm simply wondering if this is possible and if so how – user3178622 – 2014-01-20T22:36:31.767
You'll have it much easier if you break your problem into its constituents: You want to do one operation recursively on several files; the operation happens to be base64 encoding/decoding. Both parts taken by themselves are trivial, without knowing what you are trying to accomplish it's difficult to give any meaningful advice. – Vucar Timnärakrul – 2014-01-20T22:55:08.827
Why not just write a simple program to do it? It's maybe 200 lines of Java, if you have the Base64 routine already. Probably a bit more complicated in C. Anyone with basic programming skills should be able to do it. – Daniel R Hicks – 2014-01-20T23:15:47.203