Ecryption Methods

One situation I’m continuously running across is with encryption. Is it possible to add a few functions that are able to do more with encryption? I have scripts breaking when using the setEncryptedText() function and the passwords are not encrypted. With the files I’m given it’s just a bit of a pain to go in and encrypt every password or to go in and fix the scripts. Would be great to dynamically handle this.

Suggestions for the functions:

isTextEncrypted(text : String) : boolean - returns true or false based on if the text passed in is encrypted. Maybe have some sort of flag appended to encrypted Strings that flags it as encrypted. I know just looking at the String alone is tough to gather whether it’s encrypted or not.

encrypt(text : String) : String - returns an encrypted string of the text passed in

1 Like