Sv: Re: sha512sum (program) gives different result than sha512 in PG11

2019-01-14 Thread Andreas Joseph Krogh
På mandag 14. januar 2019 kl. 16:18:30, skrev Thomas Markus < t.mar...@proventis.net >: Hi, echo contains a trailing carriage return. Try echo -n "A" | sha512sum regards Thomas   Ha ha, didn't think of that!   Thanks:-)   -- Andreas Joseph Krogh CTO / Partner -

Re: sha512sum (program) gives different result than sha512 in PG11

2019-01-14 Thread Thomas Markus
Hi, echo contains a trailing carriage return. Try echo -n "A" | sha512sum regards Thomas Am 14.01.19 um 16:16 schrieb Andreas Joseph Krogh: Hi. Anyone can explain why these two don't give the same result? 1. $ echo "A" | sha512sum 7a296fab5364b34ce3e0476d55bf291bd41aa085e5ecf2a96883e593aa183

sha512sum (program) gives different result than sha512 in PG11

2019-01-14 Thread Andreas Joseph Krogh
Hi.   Anyone can explain why these two don't give the same result?   1. $ echo "A" | sha512sum 7a296fab5364b34ce3e0476d55bf291bd41aa085e5ecf2a96883e593aa1836fed22f7242af48d54af18f55c8d1def13ec9314c92a0ba63f7663500090565  -   2. $ psql -A -t -c "select encode(sha512('A'), 'hex')" 21b4f4