带有人工智能支持的加密笔记、看板和类似任务
客户端加密。使用我们的服务,您可以灵活配置和管理加密过程,无需依赖第三方工具。
// Пример кода на Node.js // 连接内置的 'crypto' 模块 const crypto = require('crypto'); // Key 和 IV 必须受到保护 const key = crypto.randomBytes(32); // 256 бит const iv = crypto.randomBytes(16); // 128 бит function encrypt(text) { let cipher = crypto.createCipheriv('aes-256-cbc', key, iv); let encrypted = cipher.update(text, 'utf8', 'hex'); encrypted += cipher.final('hex'); return encrypted; } function decrypt(encryptedText) { let decipher = crypto.createDecipheriv('aes-256-cbc', key, iv); let decrypted = decipher.update(encryptedText, 'hex', 'utf8'); decrypted += decipher.final('utf8'); return decrypted; }