File hex key fix
parent
539d3876e1
commit
734e46fec6
5
megadown
5
megadown
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION="1.9.45"
|
VERSION="1.9.46"
|
||||||
|
|
||||||
HERE=$(dirname "$0")
|
HERE=$(dirname "$0")
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
|
@ -144,8 +144,7 @@ function hrk2hk {
|
||||||
declare -A hk
|
declare -A hk
|
||||||
hk[0]=$(( 0x${1:0:16} ^ 0x${1:32:16} ))
|
hk[0]=$(( 0x${1:0:16} ^ 0x${1:32:16} ))
|
||||||
hk[1]=$(( 0x${1:16:16} ^ 0x${1:48:16} ))
|
hk[1]=$(( 0x${1:16:16} ^ 0x${1:48:16} ))
|
||||||
|
printf "%016x%016x" ${hk[0]} ${hk[1]}
|
||||||
printf "%016x" ${hk[*]}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 1:link
|
# 1:link
|
||||||
|
|
Loading…
Reference in New Issue