एआई समर्थन के साथ एन्क्रिप्टेड नोट्स, कांबन बोर्ड और समान कार्य
क्लाइंट-साइड एन्क्रिप्शन। हमारी सेवा के साथ, आप एन्क्रिप्शन प्रक्रिया को लचीलापन से कॉन्फ़िगर और प्रबंधित कर सकते हैं, तीसरे पक्ष के टूल पर निर्भर हुए बिना।
// Пример кода на 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; }