the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 1241cd4e999bb3f48dca4cab7bcff14fe6f5d6ad 15 lines 385 B view raw
1import sodium from "libsodium-wrappers"; 2import { env } from "./env"; 3 4async function encrypt(message: string): Promise<string> { 5 await sodium.ready; 6 7 const sealed = sodium.crypto_box_seal( 8 sodium.from_string(message), 9 sodium.from_hex(env.POCKETENV_PUBLIC_KEY), 10 ); 11 12 return sodium.to_base64(sealed, sodium.base64_variants.URLSAFE_NO_PADDING); 13} 14 15export default encrypt;