Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 6x 6x 52x | const TAG_DELIMITER = "\u001F";
export const encryptTag = (tag: string) =>
`${TAG_DELIMITER}${tag}${TAG_DELIMITER}`;
export const decryptTag = (message: string) => {
const parts = message.split(TAG_DELIMITER);
if (parts.length >= 3) {
return { tag: parts[1], message: parts.slice(2).join(TAG_DELIMITER) };
}
};
|