Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change default cipher to authenticated GCM mode.
https://ruby-doc.org/stdlib-2.4.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html#class-OpenSSL::Cipher-label-Authenticated+Encryption+and+Associated+Data+-28AEAD-29 > If the OpenSSL version used supports it, an Authenticated Encryption mode (such as GCM or CCM) > should always be preferred over any unauthenticated mode. Currently, OpenSSL supports AE only > in combination with Associated Data (AEAD) where additional associated data is included in the encryption process > to compute a tag at the end of the encryption. This tag will also be used in the decryption process and by verifying > its validity, the authenticity of a given ciphertext is established. Closes #567.
- Loading branch information