Encryption
Encryption
Strongdoc offers an encryption service. No data is stored on Strongdoc.
We also do provide a store-and-encrypt service with
UploadDocument
andUploadDocumentStream
.
Encrypt Document
The non-streaming version sends the entire plain text to the service, and receives the entire cipher text back. This assumes there is enough memory to store the entire contents of the file in memory.
- Go
- NodeJS
- Java
- Python
Storage of your (encrypted) documents is also available with
UploadDocument
.
Encrypt Document (Streaming)
The encryption API is also offered as a streaming service, which you may want to do if your file is too big or if you want to stream the bytes on the fly.
- Go
- NodeJS
- Java
- Python
EncryptDocumentStream
returns an io.Reader
stream.
When Read()
is called on the stream, your document is 'lazily' encrypted via Strongsalt encrytion, and the encrypted data filling the buffer provided.
We are also able to encrypt and store the documents for you with
UploadDocumentStream
.
Decryption
After encryption, you may now decrypt the document.
Decrypt Document
To decrypt a document, simply call it together with the filename and the payload.
- Go
- NodeJS
- Java
- Python
Decrypt Document (Streaming)
The decryption API is also offered as a streaming service, which you may want to do if your file is too big or if you want to stream the bytes on the fly.
- Go
- NodeJS
- Java
- Python
You must provide an io.Reader
object yielding the ciphertext returned by one of the encryption methods, EncryptDocument
or EncryptDocumentStream
.
DecryptDocumentStream
returns an io.Reader
stream.
When Read()
is called on the stream, the ciphertext is 'lazily' decrypted via Strongsalt encrytion, and the plaintext filling the buffer provided.