Des.js
Copy Code code as follows:
//
This SOFTWARE is provided ' as is ' and
Any EXPRESS OR implied warranties, including, BUT not LIMITED to, the
Implied warranties of merchantability and FITNESS for A particular purpose
ARE
Des. h file:
//////////////////////////////////////// //// // * Provided by Zhu Meng bin, national University of Technology Email: zmb.tsubasa@gmail.comThis product is free for use. */////////////////////////////////////// /// // # ifndef des_h #
The DES algorithm is one of the most general symmetric key algorithms, because the algorithm itself is public, so its security lies in the security of the key. There are usually two kinds of algorithms based on key: symmetric algorithm and public
#regionCross-platform plus decryption (C # Android IOS) Public Static stringSKey ="123456"; /// ///decryption/// /// To decrypt the Base64 /// Key , and must be 8-bit /// decrypted String Public Static
Des. jsCopy codeThe Code is as follows://// This software is provided "as is" AND// Any express or implied warranties, INCLUDING, but not limited to,// Implied warranties of merchantability and fitness for a participant PURPOSE// Are disclaimed. IN
Oracle defines the DES encryption and decryption and MD5 encryption function example, des encryption and decryption
(1) DES encryption function
create or replace functionencrypt_des(p_text varchar2, p_key varchar2) return varchar2 isv_text varchar2(4
Copy Code code as follows:
Paul Tero, July 2001.
http://www.tero.co.uk/des/
//
Optimised for performance with large blocks by Michael Hayworth, November 2001
Http://www.netdealing.com
//
This SOFTWARE is provided ' as is ' and
Any
Reprint Please specify source: http://blog.csdn.net/zhaokaiqiang1992In the previous article, we discussed the DES algorithm, but also understand how to ensure the consistency of the encryption and decryption results under different platforms. But
Recently in the project, the issue of DES Encryption and decryption was encountered.Scene is the Android app side with Des encryption, PHP this side need to decrypt. No prior contact with Des this encryption and decryption algorithm, but think there
This is a previous article, only to find out that the content was not put in before today. It's so dizzy. Luckily I looked at the comments and someone pointed it out. I am really sorry. Now put the code up; statement, not my own completely original.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.