0

So I know this might not be a secure method of encryption or obfuscation and likely not the recommended way either but I was wondering if it was remotely feasible or practical to encode little secrets on my own private PC by taking a string, like a password for example, and coming up with an encoding sequence using very basic encoding methods using bash scripts.

For example

echo  Password | base64 | base85 | base64 | hex | base85
PENdTilAbCVZPUByNSgr

and then upon pulling that password from my little txt key pair database use the exact opposite decoding sequence to end up back at the original password.

Is this a practical form of obfuscation and does it actually provide any security at all? Its not like I need super good security for storing words on my pc that only I use but this got me thinking.

Robert
  • 7,394
  • 40
  • 45
  • 64
sweet
  • 15
  • 1
  • 5
  • 4
    Don't do this. Security by obscurity is insecure garbage, and you have other tools like `gpg` or `openssl` available. Base64 et al look characteristically like base64 (or al ;-) and are easy to reverse. – Robert Dec 21 '22 at 16:00
  • How about something like [How can I encrypt / decrypt AES-256 CBC with OpenSSL?](https://superuser.com/a/1361462/754490) or [How to use encrypted and decrypted passwords in shell script?](https://stackoverflow.com/a/50462972/6771046) – U880D Jan 02 '23 at 16:24

0 Answers0