Posts

Showing posts from November, 2022

PYTHON :: PROGRAMMING : UDEMY : STARTER

  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Complete Python Developer in 2021 : Zero to Mastery ::: Python Community : Join by clicking here:  https://discord.gg/nVmbHYY Trainers : Blog to stay up-to-date with whats new in Python https://zerotomastery.io/blog/?tag=PM  ACADEMY : ZTM  :  https://zerotomastery.io/courses +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Section 1: Introduction :: 1. Course Outline    2. Join Our Online Classroom! 3. Exercise: Meet The Community  Section 2: Python Introduction :: 4. What Is A Programming Language 5. Python Interpreter  There are two types of translator  "Interpreter" & "Compiler" 1. Interpreter :   An interpreter is a translator that translates you code line by by  2. Compiler  : Compiler is one that take the entire file of code , translates and then compiles it We can download it from the  python.org Th...

Python : Arrays

Image
  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ https://www.youtube.com/watch?v=nlP5kF1_efE  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Array is a container that stores   multiple values of the same type  . The very key is that the array has to be of the same type.  Syntax : var = array(type code, [elements]) from array import * arr = array('i', [1, 2, 3, 4, 5 ] print(arr) using Pointer Reversing the array . Append a value to an array 

Python Code : Encrypt / Decrypt : 8X8

  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Functionality of this Python Code. 1. Ensure that the user who is encrypting the file is a valid IDM user authorized on the Local linux machine. 2. Generate the cryptographic key that uses the fernet module to encrypt the file. 3. Encrypts the Given files  Code .... from __future__ import unicode_literals import io import string from io import StringIO import sys import os import pam ##### Functions to create the filekey.key def generate_fernet_key():    import os    import os.path    location = os.getcwd()    path = 'location/filekey.key'    isFile = os.path.isfile(path)    if isFile == "True":      os.remove("filekey.key")    else:      from cryptography.fernet import Fernet      # key generation   ...