Port of Python's itsdangerous to Ruby.