Encryption - Decryption in BrightScript / Roku
Parry Patel
Posted on March 8, 2022
In this article, we will see how can perform Encrypt and Decrypt a string using the ToBase64String() and ToAsciiString() functions available in BrightScript respectively.
Encryption
ba = CreateObject("roByteArray")
ba.FromAsciiString("123456")
encryptedString = ba.ToBase64String()
Decryption
ba = CreateObject("roByteArray")
ba.FromBase64String(encryptedString)
encryptedString = ba.ToAsciiString()
💖 💪 🙅 🚩
Parry Patel
Posted on March 8, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
brightscript How to define a function in component interface on Roku(BrightScript/SceneGraph)
March 29, 2018