python sha256 crypt decrypt

# encrypting
from cryptography.fernet import Fernet
message = "my deep dark secret".encode()

f = Fernet(key)
encrypted = f.encrypt(message)
# decrypting
from cryptography.fernet import Fernet
encrypted = b"...encrypted bytes..."

f = Fernet(key)
decrypted = f.decrypt(encrypted)

4.14
7
Baejin 145 points

                                    72c13ff3dc4781acfd11a354ed57fed70aab89c94453cefb1011ae2798f33b70

4.14 (7 Votes)
0
3.33
3
Tay2510 90 points

                                    8e8cb099e914517f2804a5c09564f1658b2e8aa63058f8aa491e2486952da62b

3.33 (3 Votes)
0
4.14
7

                                    40bc4a0c553d82cec8ff90ef8b5f3d6bc2476ba829e8a753cf5f98defd001bf6

4.14 (7 Votes)
0
4.25
4
Keeto 120 points

                                    32b5e15f473afb17beafdc3f0ba847cbfdb2b7de37763fb50b147bc8e6c93450

4.25 (4 Votes)
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source