Project Icon

csprng

Enhance Random Number Generation and Tensor Security in PyTorch

Product Descriptiontorchcsprng delivers AES 128-bit encryption in ECB and CTR modes, along with secure pseudorandom number generators for PyTorch, via a C++/CUDA extension that supports both CPU and CUDA. It offers APIs for flexible tensor encryption and decryption, allowing the choice of seed-based or crypto-secure random devices, thus ensuring high security across applications. Optimized for PyTorch, it enhances performance and security in parallel random number generation on CUDA and CPU, suitable for data manipulation and deep learning. The newest version supports Python 3.7-3.9 and CUDA-enabled setups.
Project Details