- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
Jul 20, 2023
Convert between textual representations of numbers and binary
These programs convert between textual and binary representations of numbers. ascii2binary reads input consisting of textual representations of numbers separated by whitespace and produces as output the binary equivalents. The type and precision of the binary output is selected using command line flags.
binary2ascii reads input consisting of binary numbers and converts them to their textual representation. Command line flags specify the type and size of the binary numbers and provide control over the format of the output. Unsigned integers may be written out in binary, octal, decimal, or hexadecimal. Signed integers may be written out only in binary or decimal. Floating point numbers may be written out only decimal, either in standard or scientific notation. If you want to examine the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters.
The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers.
Checkout these related ports:
- Zbase32 - Base32 Encoder/Decoder
- Ytnef - Unpack data in MS Outlook TNEF format
- Yj - Convert between YAML, TOML, JSON, and HCL
- Yj-bruceadams - Command line tool that converts YAML to JSON
- Xml2c - Convert an XML file into C struct/string declarations
- Xdeview - X11 program for uu/xx/Base64/BinHex/yEnc de-/encoding
- Wkhtmltopdf - Convert HTML (or live webpages) to PDF or image
- Uulib - Library for uu/xx/Base64/BinHex/yEnc de-/encoding
- Uudeview - Program for uu/xx/Base64/BinHex/yEnc de-/encoding
- Unix2dos - Convert ASCII newlines between CR/LF and LF
- Tuc - Text to Unix Conversion
- Trans - Character encoding converter generator
- Tnef - Unpack data in MS Outlook TNEF format
- Ta2as - TASM to AT&T asm syntax converter (GNU AS)
- Showkey - Display cooked key sequences (keycap-to-keystrokes mappings)