Privat erkan kaplan Saving as Md5 for later reuse: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "Crypto-JS: https://code.google.com/p/crypto-js/ First, you need to add the crypto-jslibrary into the EXTRAHEADERS: <pre> <script src="http://crypto-js.googlecode.com/svn/t...")
 
No edit summary
 
Line 1: Line 1:
Crypto-JS:
'''Crypto-JS:'''


https://code.google.com/p/crypto-js/
https://code.google.com/p/crypto-js/
Line 12: Line 12:




Sample Code:
'''Sample Code:'''
<pre>
<pre>
Dim PassHash  
Dim PassHash  
Line 26: Line 26:
</pre>
</pre>


Sample code 2:
'''Sample code 2:'''


<pre>
<pre>

Latest revision as of 01:23, 25 May 2013

Crypto-JS:

https://code.google.com/p/crypto-js/


First, you need to add the crypto-jslibrary into the EXTRAHEADERS:

<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>


Sample Code:

Dim PassHash 
Function Button1_onclick()

 PassHash = String(CryptoJS.MD5("Erkan kaplan"))
 ' console.log(PassHash.toString(CryptoJS.enc.Latin1)) 
 console.log(PassHash)
 MsgBox PassHash
End Function


Sample code 2:

JavaScript
var MD5_Ident = CryptoJS.MD5('Bonjour'); 
var MD5_Ident1 = CryptoJS.MD5(MD5_Ident); 
var MD5_Ident2 = CryptoJS.MD5('ebc58ab2cb4848d04ec23d83f7ddf985'); 
var MD5_Ident2 = CryptoJS.MD5(CryptoJS.enc.Hex.parse('ebc58ab2cb4848d04ec23d83f7ddf985'));
        
document.writeln('<font color="white">');
document.writeln('<br>MD5_Ident:'+MD5_Ident); 
document.writeln('<br>MD5_Ident1:'+MD5_Ident1);
document.writeln('<br>MD5_Ident2:'+MD5_Ident2);
document.writeln('</font>');
End JavaScript