You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
To build the program, simply open the Visual Studio 2015 solution and click Build. The resultingbinarycryptpad.exe requires the .NET Framework 4.
Encryption
cryptpad uses AES encryption, supporting key lengths of up to 256 bits, and can generate keys usingeither SHA-256 (default), SHA-512, RIPEMD-160 (128 bit keys only) or MD5 (128 bit keys only). Onlytwo block cipher modes of operation are supported, CBC (recommended) and ECB.
File format
Encrypted text files begin with a 128 bit IV, followed by any number of encrypted blocks. Therefore,the file size is always a multiple of the block size, which is 128 bits (16 bytes).
Manual encryption and decryption using OpenSSL
You can, in fact, manually encrypt and decrypt text files exactly as cryptpad does, using OpenSSL.The following example uses bash and assumes AES/CBC/PKCS7 with a 256 bit key generated usingSHA-256. However, only minimal changes are required to adapt the commands to other configurations.
First, you need to create the key:
key=`echo -n"$password"| sha256sum| head -c 64`
To encrypt content, generate a random initialization vector and its hexadecimal representation,and use it in combination with the computed key in order to produce the output file: