One thing that I've wondered for a long time is how file encryption works, for example if you open a Word (.docx) in Notepad, you'll a a bunch of characters that look random to the noob's eye. However, if you open a .rtf file with the same text in Notepad, you can see more, such as the character set, font, font size, and even the text of the document. It almost looks like a more complicated version of BBCode.
From what I understand, file types and encryption work like this (I'm using Word 2010 for my example):
Text is typed into Word > Word uses a key to encrypt and create a .docx file > The file is saved as *.docx
And decryption is basically the same thing, but in reverse:
The file, *.docx, is opened by Word > It is decrypted using the same key > You are shown the original document
So what I'm wondering, in a nutshell, is how I can make a program, such as a text editor, that can allow *.docx files to be edited (or .rtf) and how I can make my own file types and extensions.
Any help would be greatly appriciated
From what I understand, file types and encryption work like this (I'm using Word 2010 for my example):
Text is typed into Word > Word uses a key to encrypt and create a .docx file > The file is saved as *.docx
And decryption is basically the same thing, but in reverse:
The file, *.docx, is opened by Word > It is decrypted using the same key > You are shown the original document
So what I'm wondering, in a nutshell, is how I can make a program, such as a text editor, that can allow *.docx files to be edited (or .rtf) and how I can make my own file types and extensions.
Any help would be greatly appriciated