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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:55:35+00:00 2026-06-14T16:55:35+00:00

plist_values[‘HashData’].join().unpack(‘m’)[0].each_byte do |b| hash_decoded << sprintf(%02X, b) end I need to translate it to

  • 0
plist_values['HashData'].join("").unpack('m')[0].each_byte do |b|
    hash_decoded << sprintf("%02X", b)
end

I need to translate it to other language. As I understood, it puts all contents of ‘HashData’ array into a string, then decodes it from Base64, But what’s next?
Can you write me a step-by step explanation what it does?
Thanks in Advance!

  • 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-14T16:55:36+00:00Added an answer on June 14, 2026 at 4:55 pm
    • join("") concatenates all the strings in the array (or what each element in the array returns when calling to_s).
    • unpack('m') from the docs decodes the string (and it assumes it is base64 encoded).
    • sprintf("%02X", b) from the docs returns the hexadecimal representation with upper case letters.
    • hash_decoded << .. appends the hex representation to the string

    The bottom line is that you get a string that represents the hexadecimal version (with upper case letters) of the joined strings in plist_values['HashData'].

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

Sidebar

Related Questions

I need to reorder a plist (an array of dictonaries) by Key value. In
I have a plist with key values. Each key represent a language, let's say
I have to save some config parameters with values in iPhone. I need to
I read a plist into memory and need to change one of the values
we need to be able to read in the contents of an existing plist
I have a JSF data table <h:dataTable id=memberTable value=#{bean.pList} border=0 rowClasses=rowEven rowOdd var=item> <h:column
I am trying to add value to CoreData from .plist and get from coreData
I am trying to update a boolean value in a plist dictionary in an
In my Xcode project's plist file, I can see the value for the key
My .plist and code to read it is described in http://pastie.org/605082 NSLog(@Test %@\n,[test valueForKey:@FirstName]);

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.