There is insufficient entropy in the implementation of the AES-256-CBC cryptographic algorithm. The provided encrypt functions are less secure when hex encoding and trimming are applied, leaving half of the bits in the key always the same for every encoded message or file.
Users are encouraged to migrate to the new crypto package introduced in v7.2.0.
{ "imports": [ { "path": "github.com/pubnub/go/v7/crypto", "symbols": [ "EncryptCipherKey", "NewAesCbcCryptoModule", "NewLegacyCryptoModule", "NewLegacyCryptor", "defaultExtendedCryptor.DecryptStream", "defaultExtendedCryptor.EncryptStream", "legacyAesCipher", "legacyCryptor.Decrypt", "legacyCryptor.DecryptStream", "legacyCryptor.Encrypt", "legacyCryptor.EncryptStream", "module.Decrypt", "module.DecryptStream", "module.Encrypt", "module.EncryptStream" ] } ] }