Prosygma UK Prosygma France Prosygma Italie
    
     Accueil     Commander     Clients     Téléchargements     Contacts     I-mode        Offre spéciale
   Hébergement ASP-PHP
      Pack PRO I
      Pack PRO II
      Pack PRO III
   Hébergement .NET
      Pack .NET I
      Pack .NET II
      Pack .NET III
   Revendeurs
      SEMI-DEDIE I
      SEMI-DEDIE II
      SERVEURS DEDIES
   Hébergement divers
     - WEBDEV
     - STREAMING
   Services
      NOM DE DOMAINE
      HTTPS & SSL
      E-COMMERCE
      SQL SERVEUR
      WEBMAIL
      REFERENCEMENT
      E-SAUVEGARDE
   Les + Prosygma
      NOS TARIFS
      LE RESEAU
      ASSISTANCE
      FORMATIONS
   Outils
      WHOIS
      FAQ
      Aide IIS
      Ressource KIT FP
      Composants ASP
     PARTENAIRES
     
     
     

Solutions hébergement
Support et Assistance technique.
 
Imprimer Sauvegarder Ajouter cette page à vos Favoris :-)
  
  [Cryptage et decryptage en ASP]
 
Comment-crypter-du-texte-et-des-fichiers-en-ASP-liste-de-composants
 
 

Can I perform simple encryption / decryption in ASP?

Sure, however before you get into the code please understand that this is *not* secure in any way. In fact, it is more like encoding than encrypting; it will protect the string from casual viewing, but will not be safe against anyone with a purpose (and 5 minutes to kill). If you need encryption, see the list below the code for several free and commercial offerings. . 
 
Basically, this code takes the ASCII value of each string, offsets it by a number you can control (don't go too high though; I'd stick in the range of -47 -> 133 to be safe, as CHR() will return errors if you reach > 255). This assumes, of course, that the original string contains ONLY alphanumeric characters. You will have to play with that range if you are using other characters, and you will also want to test this code if you are using a non-default character set. 
 
<% 
    str = "ZzAa019WHOLEbunch" 
    offset = 8 
 
    for i = 1 to len(str) 
        newStr = newStr & chr((asc(mid(str,i,1))+offset)) 
    next 
 
    response.write "New string is : " & newStr & "<p>" 
 
    for i = 1 to len(newStr) 
        oldStr = oldStr & chr((asc(mid(newStr,i,1))-offset)) 
    next 
 
    response.write "Old string was : " & oldStr & "<p>" 
%>
 
Components Available For MD5 encryption options, see Article #2397.

retour


Nos serveurs sont désormais des serveurs
Pentium 3 Ghz, 1 Go Ram

 La formule de base est à 10 Euros TTC / mois
Si vous avez des besoins plus spécifiques (composants, espace disque...), nous sommes la pour répondre à vos questions.
Rappel : les frais d'installation sont gratuits


Prosygma Hébergeur ASP élu meilleur site.
 
Trois nouveaux composants ASP sont désormais en place sur toutes nos formules.Il s'agit de ASPIMAGE, ASPPOP3 et ASPMAIL.


La dernière version de Microsoft® .NET Framework contient tout ce qu'il vous faut pour faire fonctionner des applications .NET Framework est disponible sur nos serveurs

Cliquez içi pour commander votre hébergement .Net

Votre nom de domaine en .com, .net ou .org au prix unique : 20 Euros

  Vérifiez la disponibilité d'un nom de domaine