On Sat, 2011-10-22 at 10:52 -0400, "Luis L. RodrÃguez Oro" wrote:
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
Sorry for saying that but cryptography tends to be hard and I would advice to invest in good book about it/find good one in the Internet (at least basics like IV, chaining modes, bits of security etc.). There's a lot that may go wrong even if you are professional cryptographer (see SSL 3.0/TLS 1.0 and, for example, B.E.A.S.T. attack). Regards
Attachment:
signature.asc
Description: This is a digitally signed message part