import { Breadcrumbs } from "@/app/components/Breadcrumbs/Breadcrumbs"; import { InternalScreen } from "@/app/components/InternalScreen/InternalScreen"; import { KeyImage } from "@/app/components/KeyImage/KeyImage"; import { useRosettaColors } from "@/app/hooks/useRosettaColors"; import { Button, Flex, Text, Tooltip, useMantineTheme } from "@mantine/core"; import { IconChevronLeft, IconLock } from "@tabler/icons-react"; import { useNavigate, useParams } from "react-router-dom"; export function GroupEncryption() { const params = useParams(); const encryptKey = params.key!; const theme = useMantineTheme(); const colors = useRosettaColors(); const navigate = useNavigate(); const translateStringToHex = (str: string) => { return str.split('').map(c => { /* XOR for prevent share keys */ const hex = (c.charCodeAt(0) ^ 27).toString(16); return hex.length === 1 ? '0' + hex : hex; }).join(' '); } return (<> { translateStringToHex(encryptKey.substring(0, 16)) } { translateStringToHex(encryptKey.substring(16, 32)) } { translateStringToHex(encryptKey.substring(32, 48)) } { translateStringToHex(encryptKey.substring(48, 64)) } Your messages is secure This key is used to encrypt and decrypt messages. Your messages is secure and not stored on our servers. ) }