By default openssl crypto outputs this when encrypting a string:
$ crypto "foobar" Encrypted string: 467bf74ec821 Plain string: foobar
The only part of that output I actually need is
467bf74ec821 and that's easily achieved with grep/cut
crypto "foobar" | grep "Encrypted" | cut -d " " -f3
Now I'm wondering if there is a flag that I can pass to crypto to just get the encrypted string so I can use it in my scripts without the need to run it through grep and cut?
The man pages of crypto don't say anything about flags nor does the online docs of openssl unless i'm missing something?