1.0.8 • Published 7 months ago

k9crypt v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

K9Crypt Encryption Algorithm

This is a special encryption algorithm created for K9Crypt.

Updates

v1.0.8

  • Enhanced encryption security with 5-layer encryption system
  • Added multiple AES encryption modes in sequence:
    • AES-256-GCM
    • AES-256-CBC
    • AES-256-CFB
    • AES-256-OFB
    • AES-256-CTR
  • Each layer now uses its own initialization vector (IV)
  • Improved data integrity with comprehensive authentication

Installation

npm install k9crypt

Usage

const k9crypt = require('k9crypt');

async function test() {
    const secretKey = 'VeryLongSecretKey!@#1234567890';
    const encryptor = new k9crypt(secretKey);
    const plaintext = 'Hello, World!';

    try {
        const encrypted = await encryptor.encrypt(plaintext);
        console.log('Encrypted data:', encrypted);

        const decrypted = await encryptor.decrypt(encrypted);
        console.log('Decrypted data:', decrypted);
    } catch (error) {
        console.error('Encryption error:', error);
    }
}

test();

License

This project is licensed under the MIT license.

1.0.8

7 months ago

1.0.6

8 months ago

1.0.7

11 months ago

1.0.5

11 months ago