Refactoring crypto, introducing json to hash parsing.