Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python encode file

#!/usr/bin/env python3
 
import sys
 
with open("enc") as fp:
    flag = fp.read()
 
print(flag.encode("utf-16-be"))
Comment

PREVIOUS NEXT
Code Example
Python :: To create a SparkSession 
Python :: python single line function 
Python :: how to negate a boolean python 
Python :: replace character in string python by index 
Python :: quantile calcultion using pandas 
Python :: multiple input to list 
Python :: brute force string matching algorithm in python 
Python :: create requirements file and load it in new envirnment. 
Python :: python str of list 
Python :: python append row to 2d array 
Python :: pandas split column into multiple columns 
Python :: pytube get highest resolution 
Python :: loop through list of lists jinja 
Python :: pandas subplots 
Python :: check space in string python 
Python :: unsupervised knn 
Python :: cropping image google colab 
Python :: how to combine two lists in python 
Python :: How to Send WhatsApp API using python 
Python :: sum of product 1 codechef solution 
Python :: Combine integer in list 
Python :: change value in nested dictionary python 
Python :: create python dataframe 
Python :: set default formatter for python vscode 
Python :: python portfolio projects 
Python :: {% load humanise %} 
Python :: args and kwargs 
Python :: python check if string is url 
Python :: df.loc a list of index 
Python :: How to efficiently determine if a search pattern is part of some target string, in Python? 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =