Horje
python code to encrypt and decrypt a stringn with password Code Example
encrypt and decrypt python
# 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)
python code to encrypt and decrypt a stringn with password
from bs4 import BeautifulSoup
import requests

print('enter Username : ')

x = input()

url = 'https://privatephotoviewer.com/usr/'

page = requests.get (url+x)

soup = BeautifulSoup (page.text, "html.parser")
name = soup.find_all('h1', id='userfullname')[0].get_text()
followers = soup.find_all('span', class_='followerCount')[0].get_text()
following = soup.find_all('span', id='following')[0].get_text()
posts = soup.find_all('span', id='posttoal')[0].get_text()
print("name : ", name)
print("Followers : ", followers)
print("Following : ", following)
print("Posts : ", posts)
print("created by elamri")




Python

Related
puython is not equal to Code Example puython is not equal to Code Example
boids algorithm Code Example boids algorithm Code Example
rc.local raspberry pi Code Example rc.local raspberry pi Code Example
what does it mean when i get a permission error in python Code Example what does it mean when i get a permission error in python Code Example
python redis delete many Code Example python redis delete many Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7