Credit portal




Credit card number and password encoder / decoder

Here's some simple JavaScript code to encode numbers, such as credit card numbers, passwords made up of digits, phone numbers, social security numbers, dates such as 20131014 etc.

NSA Headquarters

How does it work?

  1. Open our web app  in a different browser tab
  2. Enter number to encode / decode in box, on the web page in question
  3. Select Encrypt / Decrypt
  4. Email the encoded number (it should start with e) to your contact Your contact use the same form, enters the encoded number, select Encrypt / Decrypt, and then the original number is immediately retrieved.

This code is very simple, it is by no means strong encryption. It is indeed less sophisticated than uuencode. But uuencode is for geeks, while our app is easy to use by any mainstream people. The encoded value is also a text string, easy to copy and paste in any email client. The encoded value has some randomness,

in the sense that encoding twice the same values will result in two different encoded values. Finally, it is more secure than it seems at first glance, if you don't tell anyone (except over the phone) where the decoder can be found. I will create a version that accepts parameters, to make it even more secure.

Related articles

Here's the JavaScript / HTML code for those interested (this is the source code of the web page where our application is hosted ). You could save it as an HTML document on your local machine, with file name (say) encode.html in a folder (say) C://Webpages. and then open and run it from a browser on your local machine: the URL for this local webpage would be \\/C:/Webpages/encode.html if you use Chrome.


<script language="Javascript">


function encrypt2() <

var form=document.forms[0]

if (form.encrypt.checked) <

var newString="e"

if ((string.charCodeAt(i)!=101)&&(len>0)) <

for (var i=0; i<len; i++) <


Category: Credit

Similar articles: