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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:50:07+00:00 2026-05-16T23:50:07+00:00

I am attempting to decrypt a number encrypted by another program that uses the

  • 0

I am attempting to decrypt a number encrypted by another program that uses the BouncyCastle library for Java.

In Java, I can set the key like this: key = Hex.decode("5F3B603AFCE22359");

I am trying to figure out how to represent that same step in Ruby.

  • 1 1 Answer
  • 1 View
  • 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-16T23:50:08+00:00Added an answer on May 16, 2026 at 11:50 pm

    To get Integer — just str.hex. You may get byte array in several ways:

    str.scan(/../).map(&:hex)
    [str].pack('H*').unpack('C*')
    [str].pack('H*').bytes.to_a
    

    See other options for pack/unpack and examples (by codeweblog).

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

Sidebar

Related Questions

Attempting to set up an automated texting service for customers, where people can text
Attempting something like public string MyText { get {return lbl.Text;} set {lbl.Text = value;}}
Attempting to make a NSObject called 'Person' that will hold the login details for
Attempting to set up Samba + OpenLDAP using nss_ldap. After joining Windows7 to Samba
I am attempting to encrypt a file that will be deployed with an application
I need to use a Delphi component to encrypt a file that can then
Attempting to follow this Java tutorial . About 63 pages in, you are instructed
I'm attempting to use symmetric encryption to encrypt some data, and store the key
I have some code that is working correctly in Java but when I try
Attempting to use asp.net mvc's Action Result of File. So it would seem that

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.