From 6b3da46777bb5d029a4933481ee5939efa7c7109 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 29 Sep 2023 10:42:55 +0800 Subject: python-bcrypt: Update to 4.0.1, add myself as maintainer Signed-off-by: Jeffery To --- lang/python/python-bcrypt/test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lang/python/python-bcrypt/test.sh (limited to 'lang/python/python-bcrypt/test.sh') diff --git a/lang/python/python-bcrypt/test.sh b/lang/python/python-bcrypt/test.sh new file mode 100644 index 000000000..9443614f4 --- /dev/null +++ b/lang/python/python-bcrypt/test.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +[ "$1" = python3-bcrypt ] || exit 0 + +python3 - << EOF +import sys +import bcrypt +password = b"super secret password" +hashed = bcrypt.hashpw(password, bcrypt.gensalt()) +sys.exit(0 if bcrypt.checkpw(password, hashed) else 1) +EOF -- cgit