decrypt returns i for the index of the key
make Keygrip the constructor

wow JS