加密和在C#解密兼容性和PL / SQL [英] Encryption and Decryption compatibility in C# and PL/SQL
问题描述
有没有任何形式的加密和解密功能,这些功能在C#和Oracle PL / SQL?
我的意思是我可以用一个加密的字符串,并在其他解密呢?
任何帮助,我不是在安全算法好!
is there any kind of Encryption and Decryption functions that are in c# and Oracle PL/SQL? I mean I can encrypt a string in one and decrypt it in the other? any help, I'm not good in security algorithm!
欢呼声
推荐答案
在Oracle中,可以使用DBMS_OBFUSCATION_TOOLKIT。如果你想进行加密和解密,你可以尝试DES加密。对于Oracle来说,它的 dbms_obfuscation_toolkit.DESEncrypt ,和C#的 DESCryptoServiceProvider (适用于System.Security.Cryptography)。您还需要加密,如果/两者解密使用,当然相同的密钥。
In Oracle, you can use the dbms_obfuscation_toolkit. If you want to encrypt and decrypt, you might try DES encryption. For Oracle, its dbms_obfuscation_toolkit.DESEncrypt, and for C# its DESCryptoServiceProvider (in System.Security.Cryptography). You'll also need to use the same key of course if encrypting/decrypting between the two.
此外,DBMS_CRYPTO是为了取代DBMS_OBFUSCATION_TOOLKIT我相信,应该有不同的加密算法用于Oracle。
Also, DBMS_CRYPTO is intended to replace DBMS_OBFUSCATION_TOOLKIT I believe, and should have various encryption algorithms for Oracle.
这篇关于加密和在C#解密兼容性和PL / SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!