PDA

View Full Version : Rot13 crypt from input?


n00bz
04-18-2006, 08:03 PM
Can I encrypt a text from a input?

this code below works only with string, not with input. How can i modify it?

result = Crypto.Rot13("My Text");

thanks

Mina
04-18-2006, 10:52 PM
Hi.
Is that what you're looking for?

result = Crypto.Rot13(Input.GetText("Input1"));

n00bz
04-19-2006, 11:02 AM
exactly it works! thanks

But now i have another problem. Can I decode/encode a string (input) with Base64?
I can decode/encode files, but now strings. I have tried, but no success..
I hope you can help me.

Crypto.Base64DecodeFromFile("C:\\MyFolder\\MyFile.txt", "C:\\MyFolder\\MyFile.zip");