Click here to Skip to main content
16,012,061 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a text box .. and in that i will enter a letter say"A"
and in return there should be a message box saying the encrypted value

how to encrypt a letter in Javascript...???
Posted
Updated 13-Mar-14 2:49am
v2

By putting "Encrypt string in Javascript" into your friendly neighbourhood Google I got Loads of results on how to do this. It took me all of about 10 seconds.

Then I looked at some of the results, it's how you learn how to do things.
I cam across this:

A use full looking link[^]

I highly suggest you go and read it.

I also suggest you learn how to google topics before asking for help, in addition read the FAQ on this site on how to ask questions.
 
Share this answer
 
Just using Google you might find many available encryption libraries[^].
However, you should encrypt the whole user input, instead of a char at time (as most of encryption algorithms use block cyphers, see "An Overview of Cryptography"[^]).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900