diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-21 14:02:24 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-21 14:02:24 +0100 |
commit | 8a235c0c05efec1c8ee14c7454982dc2b8ca9464 (patch) | |
tree | 1263093b0995e21f823aa338c73f4112e8daf1b1 /lib/gitlab/crypto_helper.rb | |
parent | 13cfd53dd982bcbcda53d5eb5899c3efc6e92654 (diff) | |
download | gitlab-ce-8a235c0c05efec1c8ee14c7454982dc2b8ca9464.tar.gz |
Do not append new line to Base64 encoded encrypted value
Diffstat (limited to 'lib/gitlab/crypto_helper.rb')
-rw-r--r-- | lib/gitlab/crypto_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/crypto_helper.rb b/lib/gitlab/crypto_helper.rb index 68d0b5d8f8a..e85753c3a12 100644 --- a/lib/gitlab/crypto_helper.rb +++ b/lib/gitlab/crypto_helper.rb @@ -17,7 +17,7 @@ module Gitlab def aes256_gcm_encrypt(value) encrypted_token = Encryptor.encrypt(AES256_GCM_OPTIONS.merge(value: value)) - Base64.encode64(encrypted_token) + Base64.strict_encode64(encrypted_token) end def aes256_gcm_decrypt(value) |