User: editor -- 2010-05-03 << 495 497 >> |
Hits: 3387 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to do simple encryption of a text file by letter to letter remapping? I need to encryt one of my text file by following rules: replace A-L(or a-l) with O-Z(or o-z) repectively, replace M-Z(or m-z) with A-N(or a-n) repectively. After that, I can change the file back to original text with reversed mapping rules. |
Input Sample: |
This is a text before encryption. |
Output Sample: |
Hvwg wg o hslh pstcfs sbqfmdhwcb. |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open source text file 2. ctrl-h open replace dialog * in 'replace with pattern', enter: 3. click 'Replace', done! 4. ctrl-s save to file. Note: * Above operation need version 2.54 at least, for the early version, you can use following expression in step 2: * To change the text back, you just need do similar operation above, only change the expression in step 2 to: |
Download Script: scripts/496.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
How to find the descriptions in text file and enclose them with a pair of tag? (59%) How to sort a text file by the length of text in each line? (57%) How to replace the same words in text files with different strings? (53%) How to split text file by number of bytes? (53%) How to join all text file in a folder and remove all blank lines? (52%) How to sort the lines in a text files by the order of line length? (51%) How to detect encoding type of a text file automatically? (51%) How to split a text file by line and rename each file to the line contents? (50%) |
Check Demo of Advanced search and replace |
Keywords: |
how to do simple encryption of a text file by letter to letter remapping encrypt encryption translate similar trans mapping reverse scalar rules text replace reversed search replace by mapping search and replace by mapping file search replace mapping mapping file replace original change letter text replace rules |