/
UCS
/
openwrt_packages
Обзор
Документация
Войти
/
UCS
/
openwrt_packages
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
lang/python/python-cryptography/test.sh
14 строк
245 B
Jeffery To
python-cryptography: Update to 41.0.5
01 ноя 2023, 19:27
01 ноя 2023, 19:27
c4a223e
Код
Авторство
О чём код?
#!/bin/sh [ "$1" = python3-cryptography ] || exit 0 python3 - << 'EOF' from cryptography.fernet import Fernet key = Fernet.generate_key() f = Fernet(key) msg = b"my deep dark secret" token = f.encrypt(msg) assert f.decrypt(token) == msg EOF