DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
Rotate bits
Rotates the bits of every byte left or right.
ID:
bit-rotate
Category: Arithmetic / Logic
Aliases: rol, ror, bit rotation, rotate left, rotate right
#
Arguments
Argument
Type
Default
Constraints
Amount
number
1
Minimum: 1. Maximum: 7
Direction
option
"Left"
Left, Right
Carry through
boolean
false
Rotate the whole input, not each byte