Encrypt string in Python

后端 未结 6 943
孤街浪徒
孤街浪徒 2021-01-06 11:29

I need to encrypt a small string in Python. Is it possible to use a secret key to encrypt the string? Is there a good way to do this and achieve a reasonable encryption leve

6条回答
  •  情话喂你
    2021-01-06 12:25

    Take a look at py-bcrypt. Perhaps it will meet your needs. From the web site:

    py-bcrypt is a Python wrapper of OpenBSD's Blowfish password hashing code, as described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazières

提交回复
热议问题