the invention relates to the general field of digital security and more particularly cryptography . in particular it proposes a device and a method of encrypting a sequence of data . the invention also relates to a cryptographic device and a cryptographic method of generating a pseudo - random data sequence and their favored use in the field of digital security , in particular for encrypting and decrypting data and for cryptographically hashing messages .