• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Crypted Strings in a file

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to be able to crypt certain words of a file. For example here is my file
java~c++~java~java~java~java
java~c++~java~java~java~java
java~c++~java~java~java~java
java~c++~java~java~java~java
java~c++~java~java~java~java
all I want to crypt is "c++" .... and the rest of the file stays the same
Is there a possiblilly to to this .......
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm, going to need more info than this I think. Is it a text file? Is it a file you write or just read? Do you need to encrypt it or just make it non human legible? Is it always going to be the same thing (like c++ on every line)or is it something different for each line?
Need some more info/answers/explanations before we can take a shot at helping you with this.
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Parse the String, Tokenize it on c++, encrypt the tokens(using one of the encryption algorithms, i would suggest using the LZW) and reset the tokens in their original places.
Thats it, you are done.
 
Hot dog! An advertiser loves us THIS much:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic