0

I have an array of strings

var array = ["hello", "goodbye"]

and I want to encode them with a key so to decode them you'd need the key.

Would such a thing be possible without use of outside libraries

fiji
  • 228
  • 5
  • 21
  • Encode as what? – Dom Jul 03 '20 at 00:53
  • ~~Check this out seems like this is what you're looking for~~ edited because I can't read https://stackoverflow.com/questions/18279141/javascript-string-encryption-and-decryption – Deftwun Jul 03 '20 at 00:56
  • 1
    Is it possible without third party libraries – fiji Jul 03 '20 at 00:56
  • Please clarify your question stating the environment you're expecting this to run. Javascript can run almost anywhere, and the environment can have something you can use. – Fábio Batista Jul 03 '20 at 01:12
  • I am running this inside Duktape engine which doesn't allow me to use any modules that don't come with javascript – fiji Jul 03 '20 at 01:15

0 Answers0