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

The Archive Base Latest Questions

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

I need to take data from a textarea on a website and decrypt it

  • 0

I need to take data from a textarea on a website and decrypt it using a simple algorithm. The data is in the form of numbers separated by a comma. It also needs to read a space as a space. It looks like 42,54,57, ,57,40,57,44.
Heres what I have so far:

var my_textarea = $('textarea[name = "words"]').first();
var my_value = $(my_textarea).val();
var my_array = my_value.split(",");

for (i=0; i < my_array.length; i++)
{
var nv = my_array - 124;
var acv = nv + 34;
var my_result = String.fromCharCode(acv);
}

prompt("", my_result);
  • 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-11T02:17:01+00:00Added an answer on June 11, 2026 at 2:17 am

    I have no idea what you were doing with the nv and acv variables, but I got your code working with a bit of modification.

    Firstly, you need to refer to the individual array piece with my_array[i] inside your for loop. Secondly, it will not treat a blank space as a space unless you tell it to – you need to put in a check for a blank space, and turn it into a space character(32).

    The completed(and working) code is thus:

    var my_textarea = $('textarea[name = "words"]').first();
    var my_value = $(my_textarea).val();
    var my_array = my_value.split(",");
    var my_result = '';
    for (i = 0; i < my_array.length; i++) {
        if (my_array[i] == ' ') {
            my_array[i] = 32;
        }
        var acv = my_array[i];
        my_result += String.fromCharCode(acv);
    
    }
    prompt("", my_result);​
    

    DEMO

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

Sidebar

Related Questions

I need to take the data I get from an element id pulled from
I need to take data from external file and format it, the problem is,
I need to take data from one table and import it into another table.
I need to take some data from one table (and expand some XML on
Has anyone used jquery to take data from one form field and put it
I'm using mysql 5.5.22. Sometimes it happens that I need to take some data
I have a very simple SSIS package where I take data from a view
I need to take production data with real customer info (names, address, phone numbers,
I have a website and an administrator panel. I need to take some data
I need to make an Android app that will take data from my college

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.