method

update

v1_9_3_125 - Show latest stable - Class: OpenSSL::Cipher
update(p1, p2 = v2)
public

Encrypts data in a streaming fashion. Hand consecutive blocks of data to the update method in order to encrypt it. Returns the encrypted data chunk. When done, the output of Cipher#final should be additionally added to the result.

Parameters

data is a nonempty string. buffer is an optional string to store the result.