CTF

Level 0 - Decode base64 string to get password (Cryptography)

Description

A SSH password is encrypted using Base64. Decode it to get the password.

Theory

Base64 is a group of binary-to-text encoding schemes that transforms binary data into a sequence of printable characters, limited to a set of 64 unique characters. More specifically, the source binary data is taken 6 bits at a time, then this group of 6 bits is mapped to one of 64 unique characters.

Tech used

  • echo
  • base64

Solutions

  • Use base64 tool
    • Run echo S1JZUFRPTklTR1JFQVQ= | base64 -d

Notes

  • Directly using base64 -d ... does not work as it expects a file