Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to do bitwise operations in vbscript or javascript?

Posted on 2008-11-07
6
Medium Priority
?
2,404 Views
Last Modified: 2012-05-05
I need to do hexadecimal operation(addition, Rotate left, Xor) and binary operations. How to do in VBScript or Javascript? Please help
Hex Code1= 0136
Hex Code2= ABCD
I need to get Result =R= 01 + CD 
Then rotate it 4 times
R= rotate(4,R)
Then I need to do Xor 
S= R  Xor  AB
Convert S to Binary

Open in new window

0
Comment
Question by:prachi22in
  • 2
4 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 22909545
This looks an awful lot like homework...

http://www.experts-exchange.com/help.jsp#hi21

What have you done so far?

Here is a reference to a very useful page about mathematical operations
using Javascript:

http://www.w3schools.com/jsref/jsref_obj_math.asp
0
 

Author Comment

by:prachi22in
ID: 22909687
No...this is not a homework. I need to build an algorithm which handles bitwise operations. The site is in ASP. I am not sure how to do these operations. Please help.
0
 
LVL 85

Accepted Solution

by:
ozo earned 2000 total points
ID: 22915250
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22916802
ozo - good link!  Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question