一、凯撒解密介绍
1 神奇的字符
题目给的字符是
NzM3OTZlNzQ3YjM2Mzc3MzM5MzU3MDM5MzgzNzMwMzkzMTM0MzIzOTZmMzAzOTM3NzMzMjM1MzIzNTM1NzMzNjM5MzczMDM4MzA3ZA==
这是一个base64加密,解密后得到hex编码的字符 73796e747b3637733935703938373039313432396f303937733235323535733639373038307d
将hex编码的字符进行解码,获取到一串字符串 synt{67s95p987091429o097s25255s697080}
由于题目中有题目,听说16
世纪的凯撒大帝
很喜欢贝斯?
猜测一下:难道是位移16的凯撒解密?尝试之后发现是位移13的凯撒加密。
害,这不应该是13世纪的凯撒大帝喜欢贝斯吗😂😂😂
稍微注意一哈,提交的flag是括号内的内容,并且字母要全部大写哟~~
1.1 base家族编码
【常见加密和解密】https://www.bbsmax.com/A/WpdKEWgrJV/
1.1.1 base16 【编码后4位对应一个数值】
Base16编码是将二进制文件转换成由16个字符组成的文本。
1.1.2 base32 【编码后5位对应一个数值】
base32的编码表是由(A-Z、2-7)32个可见字符构成,“=”符号用作后缀填充。
1.1.3 base64 【编码后6位对应一个数值】
base64的编码表是由(A-Z、a-z、0-9、+、/)64个可见字符构成,“=”符号用作后缀填充。
base64对应的码表如下所示:
1.1.4 base58
base58的编码表相比base64少了数字0,大写字母I,O,小写字母 l (这个是L),以及符号‘+’和‘/’
1.1.5 base85
1.1.6 base91
base91的密文由91个字符(0-9,a-z,A-Z,!#$%&()*+,./:;<=>?@[]^_`{|}~”)组成
1.1.7 base100
1.2 hex编码方式
1.3 凯撒加密
将明文中的所有字母都在字母表上向后(或向前)按照一个固定数目进行偏移被替换为密文。
密文:synt{67s95p987091429o097s25255s697080}
明文:flag{67f95c987091429b097f25255f697080}
位移:13
https://www.qqxiuzi.cn/bianma/kaisamima.php
# -*- coding: utf-8 -*-
# @Date : 2018-10-12
# @Author : Peng Shiyu
class CaesarCipher