Implementation of TWINE: A lightweight block cipher in golang

Usage

  • install Go
  • Run the program with "go run twine.go"
  • "E" to encrypt and "D" to decrypt
  • Enter key size "80" or "128"
  • Enter plain text (supports spaces too) or Cipher text
  • Enter key of length 10 chars if key size is 80 bits or a key of length 16 chars if key size is 128 bits
  • Get the final Cipher text or encrypted text