用密码对表达式进行加密保护
用简单的密码 "Shiver me timbers!" 对一条消息进行加密,因而产生一个 EncryptedObject.
In[1]:=
secretMessage =
Encrypt["Shiver me timbers!", "I buried a stash of gold somewhere."]
Out[1]=
数据处于加密状态.
In[2]:=
InputForm[secretMessage]
Out[2]//InputForm=
用同样的密码进行解密.
In[3]:=
Decrypt["Shiver me timbers!", secretMessage]
Out[3]=