VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Large Number XOR / NOT / ROR / ROL

Hoof Arted  (1 Submission)   Encryption   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Use this code to do various byte manipulation on very large numbers. A function for RoleOver (ROL/ROR) (One function for both directions). Also includes a large number NOT and XOR. If you try doing a normal XOR, i.e.4294967295 XOR (Anyvalue), the system overflows. This function prevents that.

Inputs
Public Function largeXor(ByVal firstdouble As Double, seconddouble As Double) As Double Public Function largenot(ByVal firstdouble As Double) As Double Public Function RoleOver(ByVal bigdbl As Double, Dir As Integer, Count As Integer) As Double DIR = Direction (1 = ROL 2 = ROR) Count = Position Shift

Assumes
Copy and place in Module

Returns
All functions return Double to work with other functions.

Side Effects
Make sure that results are worked with correctly to avoid further overflows.

Rate Large Number XOR / NOT / ROR / ROL (3(3 Vote))
Large Number XOR / NOT / ROR / ROL.bas

Large Number XOR / NOT / ROR / ROL Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters