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 7922913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:08:02+00:00 2026-06-03T17:08:02+00:00

Trying to figure out why my base64 sha1’s are different. I get Password ‘a’

  • 0

Trying to figure out why my base64 sha1’s are different.

I get

Password ‘a’ Result ‘hvfkN/qlp/zhXR3cuerq6jd2Z7g=’

When using my java function. I can verify that using some random online tools.

However when I try to verify using the command line and openssl

echo a | openssl dgst -binary -sha1 | openssl base64

I get

P3hoUOOHVQ/auDbtfm3Igd4jABs=

That maybe it was utf8/bash thing, so I tried

echo 'a' | iconv --from-code=ISO-8859-1 --to-code=UTF-8 | openssl dgst -binary -sha1 | openssl base64

Same result.

What am I missing?

Edit:

Sites that verify my original result
http://www.tools4noobs.com/online_php_functions/sha1/ to calculate hex sha1

86f7e437faa5a7fce15d1ddcb9eaeaea377667b8

Convert hex to base64
http://tomeko.net/online_tools/hex_to_base64.php?lang=en

hvfkN/qlp/zhXR3cuerq6jd2Z7g=

  • 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-03T17:08:03+00:00Added an answer on June 3, 2026 at 5:08 pm

    echo appends a newline, which will be included in the digest computation; try printf instead. Also be wary of other parts of the pipeline adding extraneous newlines or other characters.

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

Sidebar

Related Questions

I've been trying figure out how to add a handler to a method using
I'm trying to figure out a way to parse out a base64 string from
I'm trying to figure out a way to parse out a base64 string from
I've been struggling for several hours trying to figure out how to get this
Trying to figure out an equation to get the current group a page would
I've recently been trying to figure out how to get PyCrypto to recognize PEM's
I've been trying to figure out the openssl documentation for base64 decoding and encoding.
trying to figure out how to rewrite this url clientside blog.com/post/how-to-get-the-ladies to point serverside
Trying to figure out how to get the current User's Full Name as entered
I'm using Eclipselink and I'm trying figure out the best way to create a

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.