File indexing completed on 2024-04-28 04:41:45

0001 #!/bin/sh
0002 # SPDX-License-Identifier: CC0-1.0
0003 # SPDX-FileCopyrightText: none
0004 #
0005 # Decode Hafas checksum salts
0006 
0007 salt=$1
0008 
0009 if [ -z "$salt" ]; then
0010     echo "Usage: $1 <base64 encrypted salt>"
0011     exit 1
0012 fi
0013 
0014 echo $salt | openssl aes-128-cbc -d -K 61483646387A527569426E6D33336655 -iv 00000000000000000000000000000000 -a | xxd -g 16