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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:16:31+00:00 2026-06-11T15:16:31+00:00

Some time ago i wanted to play with Google Appengine and I made a

  • 0

Some time ago i wanted to play with Google Appengine and I made a java website. Now i have the need to get away from it and i would like to migrate to Rails, the website per se is not an issue but in the Java version I used BasicPasswordEncryptor to encrypt my password.

Now I do not know how to get this same hashing on Ruby. The documentation says it’s md5 encryption but the hashes look like

4+RZ+7Vn/ddlNv4rdJeeg…..

All the hashes are 32 characters long but it really doesn’t look like an MD5 hash. Also i do not understand where is the salt stored.

Anyone has any info that could help figuring this out?

Thanks

  • 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-11T15:16:32+00:00Added an answer on June 11, 2026 at 3:16 pm

    BasicPasswordEncryptor does following

    a) It convert password to byte array
    b) It create a random 8 byte salt
    c) It passes 1000 times input through md5 with salt
    d) It gets MD5 result – 16 bytes
    e) It add to this result salt – 8 bytes
    f) It base64 encode 24 bytes (MD5 and salt), which as I understand will end up being 32 bytes.

    You can look at the source code here:
    http://grepcode.com/file/repo1.maven.org/maven2/org.jasypt/jasypt/1.5/org/jasypt/util/password/BasicPasswordEncryptor.java
    http://grepcode.com/file/repo1.maven.org/maven2/org.jasypt/jasypt/1.5/org/jasypt/digest/StandardByteDigester.java#StandardByteDigester.digest%28byte%5B%5D%29

    So, you will need to have the same things done in Rails (to generate new digested passwords or check old digested passwords).

    There is no way to restore original password from a digest (that’s the whole point of digesting).

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

Sidebar

Related Questions

Some time ago, people here helped me very well with code. Now I'm tasked
Some time ago (~4-5months ago) I attented a lecture about Java EE and at
I have been working on a java simulation game for some time (remaking theme
Some time ago i've made a simple dialog. Everything looks fine, but i'm meeting
Some time ago I've read an article on CLR, where author showed that if
Some time ago I was asked the strange question how would I implement map
Some time ago, I wrote some code to decide which method of updating mutable
some time ago I happend to resolve a PG related problem with this SO
Some time ago i posted a question related to a WriteableBitmap memory leak, and
Some time ago I created this LAMP based web. At the time I wrote

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.