Re: sed or awk: decode base64 string in passwd-like file

2011-07-01 Thread Denny Schierz
hi, Am Freitag, den 01.07.2011, 00:24 +0200 schrieb Javier Barroso: > perl -F: -a -ne ' $F1=`echo $F[1] | openssl base64 -d`; print join > (":",$F[0],$F1,@F[2 .. $#F])' file thanks, I try it :-) cu Denny signature.asc Description: This is a digitally signed message part

Re: sed or awk: decode base64 string in passwd-like file

2011-07-01 Thread Denny Schierz
hi, Am Freitag, den 01.07.2011, 00:03 +0200 schrieb Arno Schuring: > > echo e0NSWVBUfVUx= | openssl base64 -d > I certainly hope you're not expecting to recover the plaintext nope :-) They are still crypted, but readable for other Daemons, like Dovecot: If you do some like: echo e0NSWVBUfVUx=

Re: sed or awk: decode base64 string in passwd-like file

2011-06-30 Thread Javier Barroso
On Wed, Jun 29, 2011 at 4:42 PM, Denny Schierz wrote: > hi, > > I have a file with strings like: > > tes...@domain.foo:e0NSWVBUfVUx=:500:12002::/imap/spool/domain.foo/%1n/% > n:storage=50 > > I need to decode the second field (password field), with something like: > > echo e0NSWVBUfVUx= | openssl

Re: sed or awk: decode base64 string in passwd-like file

2011-06-30 Thread Arno Schuring
Denny Schierz (linuxm...@4lin.net on 2011-06-29 16:42 +0200): > I have a file with strings like: > > tes...@domain.foo:e0NSWVBUfVUx=:500:12002::/imap/spool/domain.foo/%1n/% > n:storage=50 > > I need to decode the second field (password field), with something > like: > > echo e0NSWVBUfVUx= | open

Re: sed or awk: decode base64 string in passwd-like file

2011-06-29 Thread Lorenzo Beretta
Il 29/06/2011 16:50, Denny Schierz ha scritto: hi, I have a file with strings like: tes...@domain.foo:e0NSWVBUfVUx=:500:12002::/imap/spool/domain.foo/%1n/% n:storage=50 I need to decode the second field (password field), with something like: echo e0NSWVBUfVUx= | openssl base64 -d How can I d