Decrypt
Decrypt["password",enc]
attempts to decrypt the encrypted object enc using the specified password.
Decrypt[keyspec,enc]
attempts to decrypt using the cryptographic key specification keyspec.
Decrypt[obj]
interactively requests a password with which to try to decrypt obj.
Details
- Decrypt[…,enc] takes an EncryptedObject[…] generated by Encrypt.
- In a notebook interface, Decrypt[expr] generates a dialog box; in a textual interface it generates a textual prompt.
- For a symmetric encryption method, Decrypt[key,Encrypt[key,expr]] gives expr.
- Decrypt returns an expression in the form specified by EncryptedObject[…]["OriginalForm"].
Examples
open allclose allBasic Examples (3)
Scope (3)
Decrypt to get back the exact expression:
To decrypt byte array encrypted data, Decrypt needs to know details of the encryption algorithm used:
Create an EncryptedObject to specify the cipher, padding mode and format of the plaintext message:
Decrypt using the correct password or key:
Symmetric ciphers usually require an initialization vector for decryption:
Create an EncryptedObject to specify the cipher, block mode, initialization vector and format of the plaintext message:
Applications (1)
Text
Wolfram Research (2015), Decrypt, Wolfram Language function, https://reference.wolfram.com/language/ref/Decrypt.html (updated 2019).
CMS
Wolfram Language. 2015. "Decrypt." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Decrypt.html.
APA
Wolfram Language. (2015). Decrypt. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Decrypt.html