LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2007, 02:28 PM   #1
btm
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
"decoder wheel" translator script


I administer a database where the passwords are stored "encrypted." (and I can't use that term loosely enough.) The cipher is a basic a=XX, b=YZ, etc scheme where a double alphanumeric character (and/or "%") is used to represent a single plain letter/number.

I'm using apg to generate random alphanumeric passwords but I need to then translate those generated passwords into the encrypted form. I have had moderate success using SED substitution but there are 62 possible characters each with its own 2-character encrypted equivalent. The problem is that the substitution becomes circular at a certain point thereby overwriting one sub with another. I've been using a Bash/SED approach but assume there are other (and likely better) ways to do this.
 
Old 10-18-2007, 10:41 AM   #2
btm
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I'm not sure if I asked an off-limits or suspicious question given the lack of response however I have solved the problem using a 62-part SED substitution command. The problem was solved using one delimiter on the [plain text] input file translating to another delimiter on the [encoded] output file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
Wired to Wireless "translator"? reverse Linux - Wireless Networking 2 08-16-2007 03:23 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 10:00 AM
LXer: MS: OK. OK, we'll set up an "OS" project to build an ODF killer. Er, we mean translator. LXer Syndicated Linux News 0 07-07-2006 05:54 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration