Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 3.76 KB

README.md

File metadata and controls

44 lines (34 loc) · 3.76 KB

playascon

ascon_sponge_canal_system

First online tool for Ascon cipher on the internet [blogpost]

playascon is a Javascript implementation of Ascon cipher that runs in your browser without any server-side latency. There is no ads or fancy designs, and it's obviously open source.

Supported variants

  • Ascon-128
  • Ascon-128a
  • Ascon-XOF
  • Ascon-XOFa

  • Ascon is a family of many variants:

    ascon-family

    As discussed in the LWC-Forum, NIST is considering only some of these variants to be standardized, which are: Ascon-128, Ascon-128a for AEAD, and Ascon-XOF for hashing. Therefore, those are the variants supported by playascon.

    Features

    Along with the basic functionality of the tool which is encryption, decryption, and hashing, there are two other features to mention:

  • Support for Non-English texts
  • Input format can be raw text or hexadecimal data
  • Known Answer Tests (KATs)

    To ensure the correctness of playascon results, I used Known Answer Tests (KATs) generated from the Python implementation of Asconby Maria Eichlseder (one of the Ascon authors). You can also run the tests yourself from the KATs page.

    (To have an idea what these KATs look like, you can visit: https://playascon.github.io/KATs/LWC_AEAD_KAT_128.js)

    Capture The Flag (CTF)

    To make this tool more fun, I’ve added an easy CTF (Capture The Flag) challenge to be solved. I am planning to add more challenges, to help you visualize how a nonce misuse attack could take place for example.

    ctf

    Hall of Fame (HoF)

    After the initial release of playascon, people started testing it and found some bugs in the format of the data displayed. You can find the two issues here:

  • By Joshua Holden: https://github.com/playascon/playascon.github.io/issues/1
  • By Majid M.Niknam: https://groups.google.com/a/list.nist.gov/g/lwc-forum/c/1k6o4hlYG6A/m/gaYrfxFxAgAJ
  • As a sign of appreciation for reaching out, I made a Hall of Fame to list their names. And that’s the beauty of open source projects, when people reach out to fix bugs and get acknowledged, and other users get the benefit of a well-functional project.

    Feedback

    I hope playascon will be the way-to-go tool for students to play out with Ascon, which is expected to have a very important role in the upcoming era of securing lightweight devices. The main reward I am welling to get from this project is to see feedbacks like this:

    github_comment

    Also, if you have any suggestions to modify or add something to the tool, feel free to raise an issue or email me at 0xmohamed.tarek@gmail.com