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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:48:50+00:00 2026-05-15T13:48:50+00:00

I changed the Ruby snippet and now it works, I had forgotten to add

  • 0

I changed the Ruby snippet and now it works, I had forgotten to add the md5 part int he previous post, sorry. Afterwards I retested the PHP snippet as well, and both outputs are the same now.

Here is what I have so far:

PHP:

"Inx ".base64_encode('Jon').' '.base64_encode(pack( 'H*' , md5($message."werty")))

Ruby:

md5 = Digest::MD5.digest(msg +"werty")
auth = "Inx " + Base64.b64encode('Jon').strip() + " " + Base64.b64encode(md5).strip()

The output is:

PHP:

Inx Sm9u FL6ZQ1EAMcVDpUhGQ9kxjg==

Ruby:

Inx Sm9u FL6ZQ1EAMcVDpUhGQ9kxjg==

and this is the message used:

<?xml version="1.0" encoding="UTF-8"?> <push><application>Jon</application><service><![CDATA[test-2]]></service><service-provider>Absolute</service-provider><session-id>jbg01</session-id><trigger>bulk link</trigger><sms-text url="http://example.com" url-tag="xxx"><![CDATA[Hello world]]></sms-text><recipient>555555</recipient><from>5555</from></push>

I have changed some of the sensitive info from the xml so it’s not quite the same as the string used in the PHP 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-05-15T13:48:51+00:00Added an answer on May 15, 2026 at 1:48 pm
    require "digest/md5"
    Digest::MD5.digest(string)
    

    produce the binary MD5 digest (16 bytes) directly, you don’t need to pack

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

Sidebar

Related Questions

I changed my .autotest file to use it with a Ruby-based project. After that,
I haven't used Ruby for a while on my Mac. Obviously something has changed
In Ruby, methods which change the object have a bang on the end: string.downcase!
I would like to change the name of the ruby process that gets displayed
I changed the folder that my WordPress installation was in. However, this worked fine,
I changed the output path of the test project, because the default path doesn't
Delphi 2009 has changed its string type to use 2 bytes to represent a
When I changed the rankdir of my graph from LR to TD, my record
Last weekend I changed webhosts for my website. The host server I was on
I have changed the Treeview.HideSelection = false; But how do I insure that when

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.