Skip to content

Multi-Platform Terminal based bit manipulator

License

Notifications You must be signed in to change notification settings

akatsuki105/bitwise-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitwise-go

Go

Multi-platform terminal based bitwise calculator

bitwise-go is multi base interactive calculator supporting dynamic base conversion and bit manipulation. It's a handy tool for low level hackers, kernel developers and device drivers developers.

This repository is based on mellowcandle/bitwise.

Some of the features include:

  • Works on multi-platform such as Windows, OSX, Linux.
  • Individual bit manipulator.

conversion

interactive

Install

Download Binary

Please download binary from Release page.

Build by yourself

Requirement: Go and Make

$ git clone https://github.com/Akatsuki-py/bitwise-go.git
$ cd ./bitwise-go
$ make

Usage

bitwise-go can be used both Interactively and in command line mode.

Command line calculator mode

In command line mode, bitwise will calculate the given expression and will output the result in all bases including binary representation.

bitwise-go detects the base by the preface of the input (0x/0X for hexadecimal, leading 0 for octal, 0b for binary, and the rest is decimal).

Interactive mode

bitwise-go starts in interactive mode if no command line parameters are passed. In this mode, you can input a number and manipulate it and see the other bases change dynamically. It also allows changing individual bits in the binary.

Navigation in interactive mode

To move around use the arrow keys, or use vi key bindings : h j k l . Leave the program by pressing q .

Binary specific movement

You can toggle a bit bit using the space key.

others

  • q, esc - Exit