Do not append new line to Base64 encoded encrypted value
This commit is contained in:
parent
13cfd53dd9
commit
8a235c0c05
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue