Question about Encryption...

hey guys, how're you all doing??
guys i wanna ask a question about something we can call it encryption!!
i want to encrypt a file by converting it to (hex or octal) then convert another file witch will be the code to hex or octal also, then add them together and convert the result again to words..

file1 - the file i want to encrypt
file2 - the code

cat ./file1 > ./encrypted_file1 | od
cat ./file2 > ./encrypted_file2 | od

now my problem is how i can sum encrypted_file1 & encrypted_file2 ??
and how i can get them back??

i'll be more than thankful for any help :slight_smile:

you have to decrypt the file ?! then only you have to add.

well i want to encrypt the file by adding the ods together..
then decrypt the file by subtract their ods again..

i mean..
file1 contain : My name
code file contain: secret

now what i want to do.. is to convert file1 to it's hex.
then convert the code file to it's hex also

suppouse file1 will be:
0001 1000 100 101 01
and code file will be:
1111 111 111 11 110

then i want to sum the two outputs.. and whatever the sum is equal convert it to characters

0001 100 100 101 01 +
1111 111 111 11 110
----------------------------------
1112 211 211 211 120 ----> this will be the encrypted
then convert 1112 211 211 211 120 to it's equal in characters

:smiley: :smiley:
it's kind of complex and maybe either me cant understand myself..

thank you again.... and waiting ur help guys :slight_smile: