static AesEncrypt (key, data) {
        let bytes = aesjs.utils.hex.toBytes(key);
        const iv = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
        const textBytes = aesjs.padding.pkcs7.pad(aesjs.utils.utf8.toBytes(data));
        const aesCbc = new aesjs.ModeOfOperation.cbc(bytes, iv);
        const encryptedBytes = aesCbc.encrypt(textBytes);
        const encryptedString = aesjs.utils.hex.fromBytes(encryptedBytes);

        return encryptedString;
    }
// <returns>Returns the resulting encrypted string data as HEX.</returns>
Returns the resulting encrypted string data as HEX.
Returns the resulting encrypted string data as HEX .
static AesEncrypt (key, data) {
        let bytes = aesjs.utils.hex.toBytes(key);
        const iv = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
        const textBytes = aesjs.padding.pkcs7.pad(aesjs.utils.utf8.toBytes(data));
        const aesCbc = new aesjs.ModeOfOperation.cbc(bytes, iv);
        const encryptedBytes = aesCbc.encrypt(textBytes);
        const encryptedString = aesjs.utils.hex.fromBytes(encryptedBytes);
        return encryptedString;
    }
static AesEncrypt ( key , data ) { let bytes = aesjs . utils . hex . toBytes ( key ) ; const iv = [ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ] ; const textBytes = aesjs . padding . pkcs7 . pad ( aesjs . utils . utf8 . toBytes ( data ) ) ; const aesCbc = new aesjs . ModeOfOperation . cbc ( bytes , iv ) ; const encryptedBytes = aesCbc . encrypt ( textBytes ) ; const encryptedString = aesjs . utils . hex . fromBytes ( encryptedBytes ) ; return encryptedString ; }
<returns>Returns the resulting encrypted string data as HEX.</returns>
<returns > Returns the resulting encrypted string data as HEX . < / returns >