Git Product home page Git Product logo

present.jl's Introduction

PRESENT.jl

This package implements the PRESENT encryption algorithm as proposed in the paper
PRESENT: An Ultra-Lightweight Block Cipher

The package implements the 80-bit key version which is quite popular and conceptually same as 128-bit key version.

Installation

In julia prompt do Pkg.clone("https://github.com/udion/PRESENT.jl")

Usages

The module provides two functions :

  • PRESENTenc(::String, ::String)
  • PRESENTdec(::String, ::String)
    both functions take 2 input paprameters the first one being the key and second one as inputState.
    Both the input are expected to be in hexadecimal format (without 0x), also since PRESENT is designed to be used on 64-bits state, in the hexadecimal format the string length of 16 well acommodates the possible domains for input.
using PRESENT
k_master = "ff1234abc"
input = "6789ffaed"
encrypted = PRESENTenc(k_master,input)
decrypted = PRESENTdec(k_master,encrypted)
julia>encrypted
"b376caacdcb790e7"

julia>decrypted
"00000006789ffaed"

present.jl's People

Contributors

udion avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.