Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

HIDING AND ENCRYPTING USING BASE24 MODULE

importing base64 modules for
encoding & decoding string
import base64

string = "GreeksforGreeks"

# Encoding the string
encode = base64.b64encode(string.encode("utf-8"))
print("str-byte : ", encode)

# Decoding the string
decode = base64.b64decode(encode).decode("utf-8")
print("byte-str : ", decode)
Comment

PREVIOUS NEXT
Code Example
Python :: traint test split on column id 
Python :: how to produce txt file from list python 
Python :: type hinting with default value python 
Python :: Customizing plot with axes object 
Python :: how to count the repeatance of every string in a list python 
Python :: pandas to csv if no already present 
Python :: how to choose appropriate graph for dataset visualization 
Python :: get value of list separately python 
Python :: read sharepoint list using python 
Python :: subsetting a column and giving it a value using numpy 
Python :: Basic 13 Algorithm 
Python :: Create multiple lists with defined shape filled with 0 
Python :: python multi arguments 
Python :: def print_seconds(hours minutes seconds) print() print_seconds(1 2 3) 
Python :: how to usepygame.sprite.spritecollide 
Python :: how to drag a box on your screen python 
Python :: how many python programmers in the world 
Python :: how to rinstalll re 
Python :: cv2 open blank window 
Python :: apply numba to itertools import product 
Python :: python script superuser 
Python :: tuple parameter function python is None 
Python :: pltoly boxlpot 
Python :: file.write must be string python 
Python :: Return an RDD containing all pairs of elements with matching keys in self and other. 
Python :: python how to move multiple values from one list to another at once 
Python :: assigning a value to a character in string or text file in python 
Python :: get the factorial of a number on python 
Python :: arabert 
Python :: equivalenci EN PYTHON DE INPUT EN C# 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =