Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-21 16:02:24 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-21 16:02:24 +0300
commit8a235c0c05efec1c8ee14c7454982dc2b8ca9464 (patch)
tree1263093b0995e21f823aa338c73f4112e8daf1b1 /lib/gitlab/crypto_helper.rb
parent13cfd53dd982bcbcda53d5eb5899c3efc6e92654 (diff)
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.rb2
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)