MCPcopy Create free account
hub / github.com/F12FLASH/CTF / decodeFlag

Function decodeFlag

7.GraphQL Apocalypse/server/crypto/flagEncoder.ts:28–34  ·  view source on GitHub ↗
(encoded: string)

Source from the content-addressed store, hash-verified

26}
27
28export function decodeFlag(encoded: string): string {
29 const step1 = Buffer.from(encoded, 'base64').toString('utf-8');
30 const step2 = xorEncode(step1, 42);
31 const step3 = rot13Reverse(step2);
32
33 return step3;
34}
35
36export function getFlagHint(): string {
37 return "Gợi ý giải mã: Flag đã được mã hóa qua 3 lớp - Base64 → XOR(key=42) → ROT13. Hãy giải ngược lại!";

Callers 1

testFlagEncoder.tsFile · 0.90

Calls 2

xorEncodeFunction · 0.85
rot13ReverseFunction · 0.85

Tested by

no test coverage detected