Flowdock
method

auth_tag

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Cipher
auth_tag(p1 = v1) public

Gets the authentication tag generated by Authenticated Encryption Cipher modes (GCM for example). This tag may be stored along with the ciphertext, then set on the decryption cipher to authenticate the contents of the ciphertext against changes. If the optional integer parameter tag_len is given, the returned tag will be tag_len bytes long. If the parameter is omitted, the maximum length of 16 bytes will be returned. For maximum security, the default of 16 bytes should be chosen.

The tag may only be retrieved after calling Cipher#final.

Show source
Register or log in to add new notes.