(encoded: string)
| 26 | } |
| 27 | |
| 28 | export 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 | |
| 36 | export 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!"; |
no test coverage detected