Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:45:40+00:00 2026-06-14T02:45:40+00:00

I am trying to generate a hash value using this code use Digest::SHA qw(sha1_hex);

  • 0

I am trying to generate a hash value using this code

use Digest::SHA qw(sha1_hex); print sha1_hex("prady@prady.com")

The generated value is

642732893b7d25cf6a47773fa1c4988fac2ff3ad

When i check the hash code using the free generator

http://sha1-hash-online.waraxe.us/

i get the hash code as

e49ece87a60590483bb74c24e82f9d64d13d98c1

I performed the same test by removing the @ symbol from the string
i get matching values from the website as well as the code.
Both return me the same hash code

08e1698b5818d8fdf0f7b31132c3b44c49671644

Of the ones generated by the code and website which is the correct one ? Is this a known behavior while using @ symbol on string ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:45:41+00:00Added an answer on June 14, 2026 at 2:45 am

    Using @something inside a double-quoted string is interpreted as an array name by Perl. You would have caught that mistake if you’d used use warnings; and use strict;. The solution is simple: escape the @, like this: print sha1_hex("some\@where.org"). Or use single-quoted strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to generate a fixed length hash using the code below. public int
Im trying to generate a color gradient using ColdFusion. My current code below works
I'm trying to generate the following html code using cl-who: <html> <body> <div id=cnt_1></div>
I'm trying to implement a Chord distributed hash table. I want to use SHA-1
I am trying to generate a Unix-Style password hash using MD5. I undestand that
Im am trying to generate interfaces of HP Quality Center OTACLien.dll using com4j. I
Related questions: Am I using PHP's crypt() function correctly? Password storage hash with SHA-512
I am trying to verify an OAuth signature generated in code against a known
I have a hash table generated which I am then trying to add to
I am trying to generate sha256 hash of a string in a batch script.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.