Solved

I need a password seed script

Posted on 2011-02-10
2
462 Views
Last Modified: 2012-05-11
first string
"face"
second string
"1234"

I need a perl scipt to return
f1a2c3e4

one letter of each followed by sedond letter of each followed by third letter of each followed by 4th letter of each.

0
Comment
Question by:TIMFOX123
2 Comments
 
LVL 5

Accepted Solution

by:
torvir earned 500 total points
ID: 34865151
#!perl

print "First string: ";
chomp(my $s1=<STDIN>);
print "Second string: ";
chomp(my $s2=<STDIN>);
for (my $n=0; ($n<length $s1) || ($n<length $s2); $n++ ) {
      print substr($s1, $n, 1).substr($s2, $n, 1);
}
print "\n";
0
 

Author Closing Comment

by:TIMFOX123
ID: 34865213
this does it !!!  

thx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now