Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does it mean, or what is Cg==

Could someone tell me what Cg== means, I just know it's related to Base64.

I have searched but I still don't have a correct answer or an idea of ​​what it is, and I don't have much knowledge about base64

like image 423
Reinaldo Lopez Sobrino Avatar asked Oct 31 '19 15:10

Reinaldo Lopez Sobrino


People also ask

What is CG == in base64?

Cg== is the base64 encode of the new line character in the latest position. So if you want to encode ABC you will get QUJD , however if you include a "return character" after ABC you will get QUJDCg== .

What does the CG mean?

(1) (Computer Graphics) See graphics and computer-generated imagery.

What does CG mean on twitch?

If you come across a broadcaster or user on Twitch whom you feel has violated Twitch's Terms of Service (ToS) or Community Guidelines (CG), you have the ability to send a report to our Moderation team for review.

What does CG mean in discord?

Congratulations. 6. Hezkezl • 8 yr. ago. Additional comment actions.


2 Answers

Cg== is the base64 encode of the new line character in the latest position. So if you want to encode ABC you will get QUJD, however if you include a "return character" after ABC you will get QUJDCg==.

like image 152
doctore Avatar answered Sep 24 '22 19:09

doctore


You can use hexdump or xxd to reveal the actual value of the character in hexadecimal. In the case of Cg==, it's a linefeed (0A) which can be verified with the following:

❯ echo -n "Cg==" | base64 -d | hexdump -C
00000000  0a                                                |.|
00000001
like image 21
0xack13 Avatar answered Sep 25 '22 19:09

0xack13