Replace blake2b by sha512 (as it is not yet available on alpine

This commit is contained in:
nemunaire 2018-02-21 01:51:06 +01:00 committed by Pierre-Olivier Mercier
parent 78e94d4766
commit 6df70342af
4 changed files with 7 additions and 12 deletions

View file

@ -61,7 +61,7 @@ N2=$((25 + $RANDOM % 50))
{
echo -n $N1
echo -n $N2
echo ${USER_PKEY:$N1:$N2} | b2sum | cut -d " " -f 1
echo -n ${USER_PKEY:$N1:$N2} | sha512sum | cut -d " " -f 1
} > /mnt/token4
sync