nl_tokens: This method does not use a checksum the returned data must be validated some other way . @arg { string|Buffer } message - plaintext binary format @arg { string<utf8 > |Buffer } key - 256bit @arg { string<utf8 > |Buffer } iv - 128bit
pl_tokens: function cryptoJsEncrypt ( message , key , iv ) { assert ( <mask> , "Missing plain text" ) ; message = toBinaryBuffer ( message ) ; const cipher = crypto . createCipheriv ( "aes-256-cbc" , key , iv ) ; // cipher.setAutoPadding(true) message = Buffer . concat ( [ cipher . update ( message ) , cipher . final ( ) ] ) ; return message ; }