• gpg | base64 to text file, how?

    From Aug@2:460/256 to All on Fri Sep 19 22:59:30 2025
    Hi All...


    i'm trying to send the output of the last process to .txt, but it doesn't work.

    H:\temp>gpg -d ppp.asc | busybox base64 -d - > ppp.txt

    --
    /|ug
    https://t.me/aabolins

    --- Want fido for iOS/MacOS/Android/Win/Linux? https://shrtco.de/tpJ9yV
    * Origin: Fido by Telegram BBS from Stas Mishchenkov (2:460/256)
  • From Maurice Kinal@2:280/464.113 to Aug on Fri Sep 19 20:33:46 2025
    Hej Aug!

    H:\temp>gpg -d ppp.asc | busybox base64 -d - > ppp.txt

    Not sure I am following the logic here, but it seems to me that ppp.asc is already text and that the first command should be 'gpg -e ppp.asc' instead?

    Het leven is goed,
    Maurice

    -o o- -o o- -o o- -o -o -o -o o- -o o- o- o- -o
    (\ /) (\ /) (\ /) (\ (\ (\ (\ /) (\ /) /) /) (\
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Sinc eaðe mæg, gold on grunde, gumcynnes gehwone oferhigian.
    Treasure, gold in earth, may easily overwhelm any of the human race.
    --- GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
  • From Aug@2:460/256 to Maurice Kinal on Sat Sep 20 00:14:36 2025
    Hi Maurice...

    Hej Aug!
    H:\temp>gpg -d ppp.asc | busybox base64 -d - > ppp.txt
    Not sure I am following the logic here, but it seems to me that ppp.asc is already text and that the first command should be 'gpg -e ppp.asc' instead?
    Het leven is goed,
    Maurice
    -o o- -o o- -o o- -o -o -o -o o- -o o- o- o- -o
    (\ /) (\ /) (\ /) (\ (\ (\ (\ /) (\ /) /) /) (\
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^
    ... Sinc eaðe mæg, gold on grunde, gumcynnes gehwone oferhigian.
    Treasure, gold in earth, may easily overwhelm any of the human race.

    i dropped to a sh ($) shell in busybox, and that worked!

    H:/temp $ gpg -d ppp.asc | base64 -d > ppp.txt

    --
    /|ug
    https://t.me/aabolins

    --- Want fido for iOS/MacOS/Android/Win/Linux? https://shrtco.de/tpJ9yV
    * Origin: Fido by Telegram BBS from Stas Mishchenkov (2:460/256)
  • From Maurice Kinal@2:280/464.113 to Aug on Fri Sep 19 21:38:36 2025
    Hej Aug!

    i dropped to a sh ($) shell in busybox, and that worked!

    Ah! I am assuming your version of busybox is using the ash shell. The last time I used/built busybox I turned off all the builtin shells and made bash the shell of choice. I think in your case/usage ash should be good enough.

    I don't use gpg so I am totally green to whatever it is you're attempting to do. For the record;

    <Esc>:read !gpg --version
    gpg (GnuPG) 2.4.8
    libgcrypt 1.11.2
    Copyright (C) 2025 g10 Code GmbH
    License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Home: /home/somedork/.gnupg
    Supported algorithms:
    Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
    Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
    CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Compression: Uncompressed, ZIP, ZLIB, BZIP2

    What?!?! No xz compression? That is sad. Oh well, I can live without it but if it did matter I'd go with zlib given the choices. I most definetly would/will stay away from zip. What a ripoff that has been since day one.

    Het leven is goed,
    Maurice

    -o o- o- o- o- o- -o o- o- o- o- -o -o o- -o -o
    (\ /) /) /) /) /) (\ /) /) /) /) (\ (\ /) (\ (\
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Wærwyrde sceal wisfæst hæle, breostum hycgan.
    Wary with words, a wise man should meditate in his heart.
    --- GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
  • From August Abolins@2:221/1.58 to Maurice Kinal on Fri Sep 19 18:57:00 2025
    Hello Maurice Kinal!

    ** On Friday 19.09.25 - 20:33, Maurice Kinal wrote to Aug:

    Hej Aug!

    H:\temp>gpg -d ppp.asc | busybox base64 -d - > ppp.txt

    Not sure I am following the logic here, but it seems to me
    that ppp.asc is already text and that the first command
    should be 'gpg -e ppp.asc' instead?

    I'm decrypting ppp.asc (it contains ascii text for the "-----
    BEGIN PGP BLOCK -----" and the "----- END PGP BLOCK -----" ).
    Then, I want to send that output to base64 to decode the b64
    block from that:

    --------------jWCBZSWUCtyomtsarJUZdtEH
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    SGksDQoNCkFjdHVhbGx5IEkgaGFkIE9wZW5LZXlDaGFpbiBpbnN0YWxsZWQgYmVmb3JlLiBU aGlzIGlzIGdvaW5nIHRvIGJlIGEgDQpzZWNvbmQgYXR0ZW1wdCBhdCBnZXR0aW5nIHRoaW5n

    [...]

    ZCBOaWVsc29uIHZpYSBncm91cHMuaW8gd3JvdGU6DQo+PiBPSyBnb29kLiBOb3c
    gY29tZXMg dGhlIGZ1biBwYXJ0Li4uIEdldHRpbmcgUEdQIHRvIHdvcmsgb24gbXkgQW5kcm9pZCBkZXZp Y2UuDQo+Pg0KDQo=

    --------------jWCBZSWUCtyomtsarJUZdtEH--


    --
    ../|ug

    --- OpenXP 5.0.64
    * Origin: (2:221/1.58)
  • From August Abolins@2:221/1.58 to Maurice Kinal on Fri Sep 19 19:13:00 2025
    Hello Maurice Kinal!

    ** On Friday 19.09.25 - 21:38, Maurice Kinal wrote to Aug:

    Hej Aug!

    i dropped to a sh ($) shell in busybox, and that worked!

    Ah! I am assuming your version of busybox is using the
    ash shell. The last time I used/built busybox I turned
    off all the builtin shells and made bash the shell of
    choice. I think in your case/usage ash should be good
    enough.

    busybox offers several shells: ash, sh, bash.

    I'm not sure what specifically the "sh" one is.


    I don't use gpg so I am totally green to whatever it is you're attempting to do.

    Explained in a previous post.


    For the record;

    <Esc>> :read !gpg --version
    gpg (GnuPG) 2.4.8
    libgcrypt 1.11.2
    Copyright (C) 2025 g10 Code GmbH

    You are quite up to date.

    How is the " <Esc>> :read !gpg --versionú" implemented?


    [...] I most definetly would/will stay away from zip.
    What a ripoff that has been since day one.

    ZIP was/is quite ubiquitous. What makes it a ripoff?

    --
    ../|ug

    --- OpenXP 5.0.64
    * Origin: (2:221/1.58)
  • From Maurice Kinal@2:280/464.113 to August Abolins on Fri Sep 19 23:39:38 2025
    Hej August!

    I'm decrypting ppp.asc

    I get it now. Good thing you knew what you wanted and got it to work.

    Het leven is goed,
    Maurice

    -o -o o- -o o- -o -o o- o- o- -o -o o- o- o- -o
    (\ (\ /) (\ /) (\ (\ /) /) /) (\ (\ /) /) /) (\
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Eorþan indryhto ealdað ond searað, swa nu monna gehwylc.
    The glory of earth ages and grows sere, as now every man does.
    --- GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
  • From Maurice Kinal@2:280/464.113 to August Abolins on Fri Sep 19 23:45:56 2025
    Hej August!

    I'm not sure what specifically the "sh" one is.

    That is a real old shell that has become a symbolic link to whatever the shell you are really using, in your case probably ash. In my case it is bash which is a relatively new shell in the grand scheme of all that is termed unixie. On Solaris csh (aka c-shell) was all the rage. You can chalk this one up as a backwards compatibilty thingy. On most, if not all, linux distributions bash is the usual suspect (gnu).

    You are quite up to date.

    I try.

    ZIP was/is quite ubiquitous. What makes it a ripoff?

    From my limited understanding it was originally stolen code that became known as pkzip and was made freely available to anyone caring to download and use it. At any rate it really isn't straight compresssion as it also archives which is a totally different function. In unixieland the archiving is usually tar and doesn't require compression which, as Martha would say, is a good thing. In the days of nine track tapes, this was a feature since compression was vorboten.

    Het leven is goed,
    Maurice

    o- -o o- -o -o -o -o o- o- -o -o o- o- -o -o -o /) (\ /) (\ (\ (\ (\ /) /) (\ (\ /) /) (\ (\ (\ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Gif ðu hwæt on druncen misdo, ne wit ðu hit ðam ealoþe.
    If you do something wrong when drunk, don't blame it on the ale.
    --- GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
  • From Maurice Kinal@1:153/7001 to August Abolins on Sat Sep 20 01:52:24 2025
    Hey August!

    How is the " <Esc>> :read !gpg --version�" implemented?

    That is a vim (text editor) command. The <Esc> part brings vim into command mode, while the : takes you to the bottom line where you issue the command - usually save and exit :wq but in this case :read or :r - and then the ! command which is drop to shell and run 'gpg --version'. Much better than cutting and pasting methinks.

    We don't need any stinkin' mouse ... unless of course you're stuck in GUI hell.

    Дуже груви,
    Maurice

    o- o- -o o- o- o- -o -o -o -o -o o-
    /) /) (\ /) /) /) (\ (\ (\ (\ (\ /)
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^
    ... Feoh byþ frofur fira gehwylcum, sceal ðeah man... hyt dælan.
    Wealth is a comfort to every man; but one should give it away.
    --- GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)