← All problemsSign in

Password Decryption

Sweta wants to secure her bank account details and wants to encrypt her password $P$. She wants to encrypt it in such a fashion:- Suppose $P$ = "zyxabc", she will randomly shuffle her password, then she will concatenate a random string $S_1$ in starting of $P$ and a random string $S_2$ at end of the string $P$. Let $S_1$ = "fgh" and $S_2$ = "bvf" then encrypted string become $H$ = "fgh**cxabyz**b

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start