3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Teropod
0

what sort of the encryption and decryption you are trying to achieve and for what purpose.
simple encryption and decryption can be done by using some string functions.

0

Hi debasisdas,

Actually, I don't know how may ways it can be done.
In my project, I have a ".txt" file that is including data. So, I don't want the user to see or view them. That's why I would like to encryption. Some parts of project will need to read them again and then I need to do the decryption.
Can you show me which way will be better and secure?

Best regards,
zawpai

0

You can write ascii codes instead of strings later you can eazy convert them to data you need, or use any other function that will mask your input in file and use same function to get data back or you can transfer number into different numbering system and do it on different level.

For example.

a is 61 in decimal you can convert it to binary 00111101 now you can mask it to add few bits in front word and after word for example i will add 1010(00111101)0101 now if you write that to file in decimal system you will get 41941.

Hope these helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.