[MC 1.12.2][CC:Tweaked Only] Romulus, an accelerated security API for CC

Started by steamport, Aug 15, 2018, 03:42 am

Previous topic - Next topic

steamport

Downloads: https://github.com/steamp0rt/romulus/releases
Source: https://github.com/steamp0rt/romulus

Romulus is a mod which adds a "secure" API to CC. Currently, it only has two functions.

Code Select
secure.hash: String text, String type -> String hex_out
secure.random: Integer amount -> table random_bytes

secure.random is generated with Java's SecureRandom.
The current hash types are:
Code Select
KECCAK_224
KECCAK_256
KECCAK_384
KECCAK_512
SHA3_224
SHA3_256
SHA3_384
SHA3_512
SHAKE128
SHAKE256




License
Code Select
This mod is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
mod, you can obtain one at http://mozilla.org/MPL/2.0/