diff --git a/utils/base16384/Makefile b/utils/base16384/Makefile index 90fe988d2e..58007f0f3f 100644 --- a/utils/base16384/Makefile +++ b/utils/base16384/Makefile @@ -1,16 +1,16 @@ # SPDX-Identifier-License: GPL-3.0-or-later # -# Copyright (C) 2022 源 文雨 +# Copyright (C) 2022-2023 源 文雨 include $(TOPDIR)/rules.mk PKG_NAME:=base16384 -PKG_VERSION:=2.2.2 +PKG_VERSION:=2.2.4 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/fumiama/base16384/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=948da6d9eca3af64123a7df1aa0f71a81e38ab02815ab2218e71a7aface0035e +PKG_HASH:=5701519bd07a58019bc5204ca93194026f2869969cb8bc2563cbcb450f2e80bf PKG_MAINTAINER:=源 文雨 PKG_LICENSE:=GPL-3.0-or-later diff --git a/utils/base16384/test.sh b/utils/base16384/test.sh index fcc070dfb6..8839bd5120 100644 --- a/utils/base16384/test.sh +++ b/utils/base16384/test.sh @@ -2,10 +2,11 @@ case "$1" in "base16384") + opkg install coreutils-base64 i=1 - while [ $i -le 100 ]; do - s="$(head /dev/urandom | head -c $i)" - if [ "$(echo $s)" != "$(echo $s | base16384 -e - - | base16384 -d - -)" ]; then + while [ $i -le 256 ]; do + s="$(head /dev/urandom | head -c $i | base64 -w 0)" + if [ "$(echo $s)" != "$(echo $s | base64 -d | base16384 -e - - | base16384 -d - - | base64 -w 0)" ]; then exit $i fi i=$( expr $i + 1 )