Good job. If you really like encryption you should look up tutorials on Wincrypt.h
Speaking technically, this is encoding not encrypting; there is a fine difference between the two that are typically mixed.
Encrypting will usually involve a key which is used while encrypting or decrypting data; this key defines the particular mathematical process used when recovering or obstructing the data. Where as encoding usually follows the same protocol when transforming all the data into another form (in this case, it just divides all the data by x, and recovers via multiplication.)
A simple & commonly first introduced example of encryption is XOR encryption. Which invovles performing an XOR operation between the key and the data. Notice that in this form of encryption, the output of the data is dependant on the key (Which it is XORed with)
Lol it's all good welp my new account/start over has been blown out of the water GG