how to encrypt a string python
from cryptography.fernet import Fernet
message = "my deep dark secret".encode()
f = Fernet(key)
encrypted = f.encrypt(message)
how to encrypt a string python
from cryptography.fernet import Fernet
message = "my deep dark secret".encode()
f = Fernet(key)
encrypted = f.encrypt(message)
encryption using python
#Made by myself
import random
text = input ( "Enter text: " )
result = ""
private_key = ""
for i in text:
rand = random.randint ( 1, 125 )
en = rand + ord ( i )
en = chr ( en )
en = str ( en )
private_key = private_key + str ( rand ) + " "
result = result + en
print ( "nPublic key:", result )
print ( "Private key:", private_key )
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us