Sera - kinda secure encryption i guess

Started by steamport, Sep 07, 2018, 01:24 am

Previous topic - Next topic

steamport

Sep 07, 2018, 01:24 am Last Edit: Sep 07, 2018, 08:58 pm by steamport
nvm it's probably fine seriously you should use AES or ChaCha20 over this

Download:
Code Select
pastebin get ujkUULjK sera.lua
Use:
Code Select
local sera = require("/sera")
local encrypted_stuff = sera.crypt("asdafagus", "my very secure key")
local decrypted_stuff = sera.crypt(encrypted_stuff, "my very secure key")

Theoretically has same security as the BLAKE-256 hash algorithm it uses to generate keystreams: https://en.wikipedia.org/wiki/BLAKE_%28hash_function%29

Uses Anavrins' BLAKE-256 API (obviously)