Rating: 3.0
This is only ElGamal cryptosystem on Rubik Cube.
The order of Rubik Cube Group is 43_252_003_274_489_856_000n
and this is small enough to use Pohlig-Hellman.
So the algorithm is simple:
g, h, c1, c2
.y = log_g(c1)
using Pohlig-Hellman.m = c2.multiply(invert(pow(h,y)))
.But these are on Rubik Cube and cubejs
is available on JavaScript, so the implementation is harder than usual...