Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 934 Bytes

ICEBREAKER - Cryptage.md

File metadata and controls

68 lines (51 loc) · 934 Bytes

01

Algorithm

#include <iostream>
#include <string>

int main(void) {
    std::string test = "*********";
    for (int i = 0; i < test.size(); ++i) {
        test[i] = test[i] - 1;
    }
    std::cout << test << std::endl;
}

Crypted message

rhloknmbn

02

Algorithm

#include <iostream>
#include <string>

int main(void) {
    std::string test = "*******************************";
    for (int i = 0; i < test.size(); ++i) {
        test[i] = test[i] + 1;
    }
    std::cout << test << std::endl;
}

Crypted message

k(bepsf!mft!dppljft!bv!dipdpmbu

03

Algorithm

#include <iostream>
#include <string>

int main(void) {
    std::string test = "*****************************";
    for (int i = test.size() - 1; i >= 0; --i) {
        test[i] = test[i] + 1;
    }
    std::cout << test << std::endl;
}

Crypted message

k(bepsf!mft!qj{{bt!5!gspnbhft