In this video, I have talked about the fundamentals of programming and Python. If you complete this, you will be well-versed in using tuples for different use cases. Directly connect with me at:- Source Code:- #Requirements:- pip install pycryptodome # pip install pycryptodomex import base64 from import AES from import PBKDF2 import os, sys from loguru import logger try: key = "key1" iv = "my_username_pass" salt = "salt" if not (key and iv and salt): raise Exception(F"Error while fetching details for key/iv/salt") except Exception as e: ("Error occurred. Details: %s", e) (0) BS = 16 pad = lambda s: bytes(s + (BS - len(s) % BS) * chr(BS - len(s) % BS), 'utf-8') unpad = lambda s: s[0:-ord(s[-1:])] def get_private_key(): Salt = ('utf-8') kdf = PBKDF2(key, Salt, 64, 1000) key32 = kdf[:32] return key32 def encrypt(raw): raw = pad(raw) cipher = (get_private_key(), , ('utf-8')) return ( (raw)) def decrypt(enc): cipher = (get_private_key(), , ('utf-8')) return unpad( ( (enc))).decode('utf8') print(encrypt("manish")) print(decrypt("U1AMRIQSTYosVJCmmqUHnA==")) Discord channel:- For more queries reach out to me on my below social media handle. Follow me on LinkedIn:- Follow Me On Instagram:- Follow me on Facebook:- My Second Channel -- Interview series Playlist:- My Gear:- Rode Mic:-- Boya M1 Mic-- Wireless Mic:-- Tripod1 -- Tripod2:-- camera1:-- camera2:-- Pentab (Medium size):-- (Recommended) Pentab (Small size):-- Mobile:-- ( Aapko ye bilkul nahi lena hai) Laptop -- Mouse+keyboard combo -- 21-inch Monitor-- 27-inch Monitor-- iPad Pencil:-- iPad 9th Generation:-- Boom Arm/Swing Arm:-- My PC Components:- intel i7 Processor:-- RAM:-- Samsung SSD:-- WD Blue HDD:-- RTX 3060Ti Graphic card:- Gigabyte Motherboard:-- O11 Dynamic Cabinet:-- Liquid cooler:-- Antec Prizm FAN:--










