Search Photo  
RSS Feed
22 November 2009
  Home | Forum | Photo Gallery | Wallpapers | Business | Entertainment | Education | Sports | Article | City |
Free News on your website
School, College, University, Institute, Institute, Coaching Center and other Education Institute of India
Education Directory | Results | Who is Who | Notes | Article | Tutorial | Information | Dictionary | News 
 
  CA Clipper | FoxPro |

 

News FlashUS to give crucial information on Headley-Rana accomplice's 26/11 role to India | Restoration of Mughal road in J-K heads towards completion | China wants a Chinese version of Tibetan Buddhism, says Dalai Lama | Cultural heritage of Manipur showcased in Sikkim | Green Park stadium's scoreboard, the only manually operated scoreboard in India | Dalai Lama hopes PM will discuss Tibet issue with the U.S. leadership | 3 injured in fire at Jodhpur's handloom showroom | White House prepares for first state visit by Manmohan Singh | Bamboo fencing on Nainital's hillside roads to prevent mishaps | Indian Navy vessel on solo circumnavigation of world reaches New Zealand |
FoxPro Tutorial & Source Code
* Author      : Team of Pelagian Softwares
* Date        : 19/07/2007
* Source      : dec.prg
* Description : Function to encrypt / decrypt text


* usage to decrypt:  deCrypt ( text/variable/fields, any number number )
* usage to encrypt:  enCrypt ( text/variable/fields, number used in deCrypt )

accept "Enter any text to decrypt/encrypt: " to mytext
input  "Enter any number: " to enc_number

decTxt = enCrypt( mytext, enc_number)
encTxt = decCrypt( decTxt, enc_number)

?"Your Text : ",mytext
?"Your encrypted Text :", decTxt
?"Now decrypted Text :", encTxt

FUNCTION enCrypt
   
   PARAMETER val1, val2
   cVal = ""
   FOR i = 1 to Len(val1)
    cVal = cVal + CHR(ASC(SUBS(val1,i,1))+val2)
   NEXT i

reTurn LEFT(cVal,Len(val1))


FUNCTION decCrypt
   
   PARAMETER val1, val2
   cVal = ""
   FOR i = 1 to Len(val1)
    cVal = cVal + CHR(ASC(SUBS(val1,i,1))-val2)
   NEXT i

reTurn LEFT(cVal,Len(val1))




Also download:  

Category for FoxPro

Database
Financial
Mathametics
Screen
Search
Security
Sound
String

 

All right reserved by Khabarexpress.com
Contact Us | Archives | Sitemap | Can't see Hindi ?
Special Edition: Lakshchandi Mahayagya, Camel Festival 2007, Vartmaan Sahitya, Bikaner Udyog Craft Mela
Our Network rajb2b.com | khabarexpress.com | uniqueidea.net | PelagianDictionary.com | hindinotes.com
Developed & Designed by Pelagian Softwares