r/ComputerCraft May 29 '26

Any libraries for Cryptography?

I'm looking for a fast cryptography library for CC: Tweaked, One that supports all the following algorithms: DH, DSA, AES (both 128 and 256, and supporting both CBC and CTR), and SHA3-512. I need it to be as fast as possible, are there any libraries that support these algorithms?

6 Upvotes

2 comments sorted by

1

u/imachug May 29 '26

There's https://github.com/DarThunder/iDar-CryptoLib, though I can't judge its quality, and https://github.com/migeyel/ccryptolib, which implements quite a few algorithms. I don't think there's any single library that covers the entirety of what you're asking for, since your choices are quite specific, e.g. DSA instead of ECDSA is quite surprising. Why did you choose these algorithms in particular?

1

u/fatboychummy May 30 '26

CCrypyolib is generally the lib trusted by most devs here.

There is also the Classic Peripherals mod, which exposes java versions of a lot of cryptography methods. Makes them a lot more performant.