Pure JS implementation of GOST 89