通過Sapphire Encrypt utility,您可以在您的移動(dòng)通訊設(shè)備上加密和解密純文本內(nèi)容。您可以用密碼密鑰進(jìn)行加密,并在設(shè)備驅(qū)動(dòng)器或者服務(wù)器上解密,反之亦然。
The Sapphire Encrypt utility allows you to encrypt and decrypt both plain text and files on you devices. You can simply encrypt the data by using a specified key and decrypt it on another device or server, or visa-versa.
需要培訓(xùn)、定制、外包?
請聯(lián)系我們!:800018081
慧都專業(yè)技術(shù)團(tuán)隊(duì)幫助您提高效率,節(jié)省成本,降低風(fēng)險(xiǎn)!
* 關(guān)于本產(chǎn)品的分類與介紹僅供參考,精準(zhǔn)產(chǎn)品資料以介紹為準(zhǔn),如需購買請先行測試。
通過以下功能,Sapphire Encrypt Utility可以輕松得進(jìn)行數(shù)據(jù)加密:
- 使用的密碼密鑰對(duì)文本字符進(jìn)行加密
- 使用的密碼密鑰對(duì)文本字符進(jìn)行解密
- 使用的密碼密鑰對(duì)文件進(jìn)行加密
- 使用的密碼密鑰對(duì)文件進(jìn)行解密
實(shí)例代碼 該操作是如此簡單的,您只需在您的程序中聲明相應(yīng)的DLL函數(shù),然后在您需要的地方調(diào)用即可。以下是一個(gè)VB.NET的示范程序,用于演示如何對(duì)純文本字符進(jìn)行加密和解密。
- 加密文本
Dim sEncrypted As Integer
Dim sNew As String
' Fill sNew to force the string variable to a sufficient size for the returned string
sNew = Space(1000)
sEncrypted = sEncryptText(txtOriginal.Text, sNew, txtPassword.Text, _
1234567890, True)
txtEncrypted.Text = StripString(sNew)
If sEncrypted = 0 Then
MsgBox("Encrypted")
Else
MsgBox("Problem")
End If - 解密文本
Dim sDecrypted As Integer
Dim sNew As String
' Fill sNew to force the string variable to a sufficient size for the returned string
sNew = Space(1000)
sDecrypted = sDecryptText(txtEncrypted.Text, sNew, txtPassword.Text, _
1234567890, True)
txtDecrypted.Text = StripString(sNew)
If sDecrypted = 0 Then
MsgBox("Decrypted")
Else
MsgBox("Problem")
End If
The Sapphire Encrypt Utility makes data encryption easy by providing the following functionality:
- Encrypt a plain text string using a specified key
- Decrypt a plain text string specifying the key
- Encrypt a file using a specified key
- Decrypt a file using a specified key
Sample Code
Implementation couldn’t be easier, simply declare the DLL function as a function within your application and call it as though you wrote it yourself. Here’s a sample demo on how to encrypt and decrypt a simple text string within VB.NET.
- Encrypting Text
Dim sEncrypted As Integer
Dim sNew As String
' Fill sNew to force the string variable to a sufficient size for the returned string
sNew = Space(1000)
sEncrypted = sEncryptText(txtOriginal.Text, sNew, txtPassword.Text, _
1234567890, True)
txtEncrypted.Text = StripString(sNew)
If sEncrypted = 0 Then
MsgBox("Encrypted")
Else
MsgBox("Problem")
End If - Decrypting Text
Dim sDecrypted As Integer
Dim sNew As String
' Fill sNew to force the string variable to a sufficient size for the returned string
sNew = Space(1000)
sDecrypted = sDecryptText(txtEncrypted.Text, sNew, txtPassword.Text, _
1234567890, True)
txtDecrypted.Text = StripString(sNew)
If sDecrypted = 0 Then
MsgBox("Decrypted")
Else
MsgBox("Problem")
End If