CommuteOS/Commute-Kernel — pull request #2 by Tatantyler (2012-10-19 01:00:30+00:00)
Title: DNA Encryption

The new DNA API adds several new functions:

tobits(number)

Changes a number into its binary representation. The result is called a bit table, and is the format used to toDNA and fromDNA.

tonumb(bits)

Changes a bit table returned by tobits back to its decimal
representation.

toDNA(bits)

Changes a single number (in the form of a bit-table) into a string of ATs and CGs.

fromDNA(sequence)

Changes a sequence from toDNA into a bit-table.

reverseTable(table)

Unused, flips a table.