Do not append new line to Base64 encoded encrypted value

This commit is contained in:
Grzegorz Bizon 2018-11-21 14:02:24 +01:00
parent 13cfd53dd9
commit 8a235c0c05
1 changed files with 1 additions and 1 deletions

View File

@ -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)