THE DFIR BLOG
Menu

    Cyber Security

Cryptography Ceasar Ciper and ROT 13 (Shift by 3 and 13)

4/11/2020

1 Comment

 
In this post, I am going to talk about the basic fundamental and concepts of Cryptography. Let's start with Obfuscation and Encryption. In layman's language, encryption techniques are used to hide data or make is difficult to read. The term 'Crypto' become super popular because of the introduction of the currencies like Bitcoin, Litecoin, Ethereum etc. For us, it's just a form of protection, our focus will be on the cryptography applied to the communication, storage, messages etc. We will be using Python for the code nuggets. Lets start with the 'Caesar Cipher' and 'ROT13'

Caesar Cipher: It's an old trick where you just move every letter forward three character in the alphabet.

Plain Text - abcdefghijklmnopqrstuvwxyz
Cipher Text - defghijklmnopqrstuvwxyzabc

For example:
hello = khoor

Lets implement this in python!


beta = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
#GETTING User Input
user_input = raw_input("Enter a message in Capital Letters")
#Calculating String Length
n = len(user_input)
str_out = ""

for i in range(n):
        c = user_input[i]
        loc = beta.find(c)
        print i ,c,loc,
        newloc = loc +3
        str_out += beta[newloc]
        print newloc, str_out

print "Obfuscated Version:", str_out



Picture
ROT13 will do the shift by '13' instead of '3'
1 Comment
Lionel Messiah link
10/30/2023 06:47:26 am

Losing one's Crypto currency can be a devastating thing to experience, the
fact that it is almost impossible to recover a Stolen or lost Crypto coin
hurts more than anything. When a person gets scammed of their money while
investing in a crypto currency platform the only thing they can think of is
how to report the company and get back their money. Most victims of the
scam contact their wallet account provider, their bank or the law
enforcement, a few end up hiring a lawyer to sue the company but after all
these stress they still cant get their money back. Please everyone should
be careful where they invest their money. Cryptocurrency has made many rich
and at the same time made so many broke and desperate. Few weeks ago I was
referred to Wizard Ghost Champion Recovery and I was able to get back all
my USDT coins that were Stolen through their services. If you want to
recover your cryptocurrency that was stolen or lost I recommend that Wizard
Funds Recovery are reliable and trustworthy. You can also contact them via
ghostchampionwizard @ gmail dot com . I wish you all the best. They are one of
the best Recovery companies in the world .
Email : [email protected]
Website : https://championhacker0.wixsite.com
Telegram : https://t.me/WizardGhosthacker

Reply



Leave a Reply.

    RSS Feed

    Subscribe to Newsletter

    Categories

    All
    AI
    CISO
    CISSP
    CKC
    Data Beach
    Incident Response
    LLM
    SOC
    Technology
    Threat Detection
    Threat Hunting
    Threat Modelling

  • Infosec
  • Mac Forensics
  • Windows Forensics
  • Linux Forensics
  • Memory Forensics
  • Incident Response
  • Blog
  • About Me
  • Infosec
  • Mac Forensics
  • Windows Forensics
  • Linux Forensics
  • Memory Forensics
  • Incident Response
  • Blog
  • About Me