User Tools

Site Tools


wiki:computronics:cipher_block
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


wiki:computronics:cipher_block [2015/06/25 15:59] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Cipher Block ======
  
 +The Cipher Block lets you encrypt and decrypt messages using an innovative <del>ripped off from OpenEnder</del> method - item stacks! Your unique items will create the key used for encryption.
 +
 +===== Recipe =====
 +
 +**NOTE:** The stone bricks can be any type of stone bricks.
 +
 +{{ :wiki:computronics:cipherblock_recipe.png |}}
 +
 +===== Usage (Computer API) =====
 +
 +==== Setting the key ====
 +
 +The key is derived from the six item stacks in the Cipher Block's inventory. Remember that the item stacks need to be identical every time you want to encrypt/decrypt a message with the same key.
 +
 +==== ComputerCraft/OpenComputers ====
 +
 +^ Command ^ Description ^ Usage ^
 +| encrypt(plaintext) | Encrypts a plaintext message. | Returns a base64-encoded, encrypted message. |
 +| decrypt(encrypted_message) | Decrypts a base64-encoded, encrypted message. | Returns the original plaintext message. |
 +
 +==== NedoComputers ====
 +
 +^ Address ^ Read ^ Write ^
 +| 0x00, 0x02 ... 0x1E | 32 bytes (16 words) of memory. | 32 bytes (16 words) of memory. | 
 +| 0x20 | 1 on error, 0 on success | 1 - encrypt the 32 bytes of memory, 2 - decrypt the 32 bytes of memory |
 +
 +===== Usage (RedLogic/Project: Red) =====
 +
 +Send a bundled cable signal on the side marked in red - the encrypted data will come out on the side marked in blue. To decrypt, repeat the same process - send the encrypted data on the side marked in red, get the decrypted data on the side marked in blue.
wiki/computronics/cipher_block.txt · Last modified: 2015/06/25 15:59 by 127.0.0.1