Hi,
Could anyone pls give me some suggestions how to do the encryption and decryption for text?
Best reagards,
zawpai
Hi,
Could anyone pls give me some suggestions how to do the encryption and decryption for text?
Best reagards,
zawpai
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.
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
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.