[Vala] encrypt decrypt
- From: "Luis L. Rodríguez Oro" <luisr uci cu>
- To: vala-list gnome org
- Subject: [Vala] encrypt decrypt
- Date: Sat, 22 Oct 2011 10:52:37 -0400
I need encrypt and decrypt come text:
string decrypt(string text, string password){
// code
return decrypted;
}
string encrypt(string text, string password){
// code
return encrypted;
}
void main(){
string text = "hello word";
string pass = "p4ssw0rd";
string enc = encrypt(text, pass);
print("%s\", enc);
string orig = decrypt(enc, pass);
print("%s\",orig);
}
I appreciate any help.
Thanks for every body.
Luis
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES
DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]