473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

generate a sha1 encoded string using Perl

2
Hi
I ma totally new in perl i don't know perl but i was asked to 'generate a sha1 encoded string using Perl'. Can anybody explain me what is this and how to do it? I have installed perl interpreter. Please tell me find the solution for this issue.
Thanks
Anu
Oct 15 '12 #1
3 1662
Rabbit
12,516 Expert Mod 8TB
SHA1 is a cryptographic hashing algorithm. It takes an input and outputs a fixed length output. In perl, you can get a SHA1 value using the Digest::SHA library.
Oct 15 '12 #2
Anuraj
2
Hi thanks rabbit
Can tell me how to "generate a sha1 encoded string using Perl"
please help it is urgent.
Oct 16 '12 #3
Rabbit
12,516 Expert Mod 8TB
I already told you how.

Use the Digest::SHA library.
Oct 16 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Julia | last post by:
Hi I am trying to pass an encoded string to a JavaScript the following is the C# code which convert the string STRING_TO_ENCODE to base64 byte bytIn =...
2
by: aurora | last post by:
I have some unicode string with some characters encode using python notation like '\n' for LF. I need to convert that to the actual LF character. There is a 'unicode_escape' codec that seems to...
2
by: Deephay | last post by:
Greetings all, I have a problem with encode converting: Say, I have a string here, if I print it to stdout, I will got an ascii encoded string (locale do not effect), but I know that this string...
0
by: skrishnaveni | last post by:
Hi, I have an XML with lots of unordered tags. Some of the attributes in XML require to be renamed. I have tried using XML::XSLT. Although I am able to generate the desired output, it takes a lot...
0
by: joffypf | last post by:
hi how can save utf-8 encoded string to a text file. I tryed to save unicode string but unicode string only display just ike '????'. please help me...
0
by: Tim Golden | last post by:
Lawrence, Anna K (US SSA) wrote: From where I'm sitting, I can't see enough to help. The crucial thing seems to be in this phrase: "When I try to take a string that is coming out of the database...
4
by: Samuel | last post by:
Hi I am trying to write to a string text encoded to utf8 as oppose to utf16 Since the data comes from an XML object (and I serialize it) I need to pass either StreamWriter or a StringWriter...
2
by: bakpao | last post by:
Is there any way to decode a URL encoded string using XSLT? For example, this is the string that I have: This%20is%20the%20%3Ctable%3E%20tag And this is what I wanted XSLT to output: This is...
13
by: Elizabeth H | last post by:
Hi, I had a few questions regarding searching for a string and replacing it using perl scripts. I have 100's of files written in Unix shell scripts and I need to edit them all. Its like ...
0
by: vanijampani | last post by:
Hi, I tried to generate text to audio using JMF. This is my sample code: import java.io.*; import java.util.*; import java.awt.Dimension;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.