<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python on BITFRAGMENT</title>
    <link>https://bitfragment.com/tags/python/</link>
    <description>Recent content in Python on BITFRAGMENT</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Thu, 30 Jul 2020 18:48:16 +0100</lastBuildDate>
    
	<atom:link href="https://bitfragment.com/tags/python/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>CTFs - A Simple Guide on Python Decoding</title>
      <link>https://bitfragment.com/posts/ctfs-a-simple-guide-on-python-decoding/</link>
      <pubDate>Thu, 30 Jul 2020 18:48:16 +0100</pubDate>
      
      <guid>https://bitfragment.com/posts/ctfs-a-simple-guide-on-python-decoding/</guid>
      <description>Ever since I started playing CTFs I found myself decoding various base flags and whilst some of them were pretty straight forward, occasionally, you will find one that is encoded several times and even using various base encodings in the process.
How to decode these with Python easily? Well, all you need is this:
import base64 f = open(&amp;#34;b64.txt&amp;#34;, &amp;#34;r&amp;#34;).read() for i in range(0,50): f = base64.b64decode(f) print(f) The idea behind it is very simple:</description>
    </item>
    
  </channel>
</rss>